Instead of using <pre> tags, you may want to try using <source> tags with <![CDATA[]]> blocks inside.

This doesn't preserve your formatting, but it made writing the XML a lot easier for me.




Matt Raible wrote:
I want to preserve my HTML formatting in my *.xml files under xdocs. 2 reasons:

1. I'm putting a few code samples in my documentation. Maven puts <pre> on one line, then my code, and another </pre> on a different line. In my XML files, the code starts right after <pre> - which we all know is necessary to get the spacing we desire.
2. trailing space before the closing </a> tag.


Are there any (easy) workarounds for these issues?

Thanks,

Matt


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to