Pretty Print breaking XHTML formatting badly
Posted: Mon Jul 05, 2010 12:54 am
First, let me admit that I am a neophyte user of Oxygen XML, and mostly just use it for XHTML documents. I very much like the pretty print feature, but it does one thing that very much annoys me, and has caused me some trouble. (I am hoping that there is an easy solution, and will happily accept that its being revealed also reveals my own lack of competency.) If I have the following portion of an XHTML document:
<div class="boxbrdlinner">
<div id="pnlnavttl">
<h1 class="navttl"> Text: Edgar Allan Poe, “<a href="../info/pt042.htm">The Gold-Bug</a>” (Text-B), <a
href="../editions/tales.htm">
<i>Tales</i></a>, 1845, pp. 1-36 </h1>
</div>
</div>
Pretty print insists on doing this to it:
<div class="boxbrdlinner">
<div id="pnlnavttl">
<h1 class="navttl"> Text: Edgar Allan Poe, “<a href="../info/pt042.htm">The Gold-Bug</a>” (Text-B), <a
href="../editions/tales.htm">
<i>Tales</i>
</a>, 1845, pp. 1-36 </h1>
</div>
</div>
Note that it has broken the </a> end of the <a href> to a new line, which implies an extra space that will appear as underlined with the page is rendered. The complication seems to be the back to back placement of the end of the italic mark </i> and the end of the link </a>. What is odd is that if I add any character, such as this:
<i>Tales</i>x</a>
then it will not break at this point. This solution, of course is not really workable as I do not want a character here. I have compromised somewhat by adding this:
<i>Tales</i>­</a>
which works well, the ­ being ignored unless the line happens to break at this point in rendering, in which case I get the undesirable hyphen. I have tried to find an equivalent XHTML character that will simply be ignored in rendering, but to no avail. (Most character seem to end up as a space, no matter what I do.)
Am I missing something obvious in the setting the editor format preferences? I really just don't want these end tags to be forced to a new line. Any assistance would be appreciated, and I would be happy to provide additional information if what I have posted is unclear or insufficient.
<div class="boxbrdlinner">
<div id="pnlnavttl">
<h1 class="navttl"> Text: Edgar Allan Poe, “<a href="../info/pt042.htm">The Gold-Bug</a>” (Text-B), <a
href="../editions/tales.htm">
<i>Tales</i></a>, 1845, pp. 1-36 </h1>
</div>
</div>
Pretty print insists on doing this to it:
<div class="boxbrdlinner">
<div id="pnlnavttl">
<h1 class="navttl"> Text: Edgar Allan Poe, “<a href="../info/pt042.htm">The Gold-Bug</a>” (Text-B), <a
href="../editions/tales.htm">
<i>Tales</i>
</a>, 1845, pp. 1-36 </h1>
</div>
</div>
Note that it has broken the </a> end of the <a href> to a new line, which implies an extra space that will appear as underlined with the page is rendered. The complication seems to be the back to back placement of the end of the italic mark </i> and the end of the link </a>. What is odd is that if I add any character, such as this:
<i>Tales</i>x</a>
then it will not break at this point. This solution, of course is not really workable as I do not want a character here. I have compromised somewhat by adding this:
<i>Tales</i>­</a>
which works well, the ­ being ignored unless the line happens to break at this point in rendering, in which case I get the undesirable hyphen. I have tried to find an equivalent XHTML character that will simply be ignored in rendering, but to no avail. (Most character seem to end up as a space, no matter what I do.)
Am I missing something obvious in the setting the editor format preferences? I really just don't want these end tags to be forced to a new line. Any assistance would be appreciated, and I would be happy to provide additional information if what I have posted is unclear or insufficient.