Preventing Tidy from eating spaces
Trevor Harmon <[email protected]>
| Newsgroups | gmane.comp.web.html-tidy.user |
|---|---|
| Message-ID | <[email protected]> |
Consider this simple XML file: <article> <simpara><quote>text</quote>text</simpara> <simpara><quote>text</quote> text</simpara> </article> Note the space before the final "text". When I run this file through the xmllint utility, that space is preserved, as expected. But when I use W3C's tidy utility, it eats that space. For example, running "tidy -xml test.xml" produces: <article> <simpara> <quote>text</quote>text</simpara> <simpara> <quote>text</quote>text</simpara> </article> I've tried altering several of tidy's configuration options, but nothing I do tells tidy to preserve that space. Is there an option I'm missing that will do the trick? Thanks, Trevor