Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.5.7, 1.6-rc-1
-
None
Description
XmlNodePrinter outputs too much whitespace. The printLineEnd() method is always called after begin tags, and after the text body. If the element test is short this leads to ugly XML, e.g.
<id> foo </id>
where
<id>foo</id>
is more readable and more like what you would write by hand. There could be a rule that all element text values that do not contain whitespace, or that are less than N characters long, would be output in this shorter form.