The pretty printer will sometimes wrap lines by inserting whitespace around a simple value e.g., turning
<foo>bar</foo>
|
into
<foo>
|
bar
|
</foo>
|
This is simply incorrect. It is changing the value into one with whitespace before and after. Not all XML-consuming applications will tolerate this. Some may view this data as invalid, particularly if the "bar" is some sort of enumeration constant string.
We need to modify the pretty printer we use (we have our own variant due to another bug/issue we had to work around about CDATA nodes being dropped) so that it does NOT ever insert spaces around simple values. It can insert whitespace between elements, but not around simple values.