pretty printing inserts newline before closing tag bracket
Posted: Wed Jul 26, 2006 11:39 am
Pretty-printing inserts a newline character before the closing angle bracket of starting tags of mixed elements, if the first node of the content is a text() node.
Example Structure:
[...]
<para>
<language lang="en">
mixed <e>text</e> with inline formatting
</language>
</para>
[...]
Result after pretty-printing:
<para>
<language lang="en"
>
mixed <e>text</e> with inline formatting
</language>
</para>
If, however, the language element content starts with a inline tag, e.g.
<language lang="de">
<e>inline</e> and some text
</language>
the markup is formatted correctly.
Apreciate any help to get rid of this, as it may confuse inexperienced editors.
Example Structure:
[...]
<para>
<language lang="en">
mixed <e>text</e> with inline formatting
</language>
</para>
[...]
Result after pretty-printing:
<para>
<language lang="en"
>
mixed <e>text</e> with inline formatting
</language>
</para>
If, however, the language element content starts with a inline tag, e.g.
<language lang="de">
<e>inline</e> and some text
</language>
the markup is formatted correctly.
Apreciate any help to get rid of this, as it may confuse inexperienced editors.