Community
Participate
Working Groups
There are several problems. Firstly, when a mark is made (for inserting namespace declarations that can't be determined until the document is fully processed) the current line width is set so that the next attribute to be serialized will always break the line. So the first line is often shorter than it could/should be. Also, when inserting the namespace declarations, the width of the line at the start of which it is to be inserted isn't remembered, so the last line of the insertion is often too long. Of course any line be too long, but it's better to minimize that. In particular, it's nice to be able to force every attribute onto a different line with a very short line width setting.
The changes are committed to CVS for 2.8.
The changes are available in builds.