Re: Tidy adding returns inside xml elements

* Charles Reitzel wrote:
>Of course, you are right.  I am just used to Tidy's output, I guess.
>
>Thanks, I now have a patch that does the trick.
>
><?xml version="1.0"?>
><root>
>   <empty />
>   <empty />
></root>
>
>It appears to work fine on all of our existing XML test cases.  I have 
>attached them in a zip file so folks can look them over.  I'd like to get 
>some feedback (Björn?) to see if this is what is wanted everywhere.

Tidy must not insert white space to already empty elements, hence I am
fine with whatever prevents this. Since Tidy tries to normalize the
input document, it should have an option how to deal with empty elements
in general, i.e., either all are start-end-tags or all elements get an
end-tag. Tidy should not output both. This could be

  empty-elements: start-end-tag | end-tag

with start-end-tag beeing the default (docs should note this option is
ignored when in HTML/XHTML mode), but if people do not think this is
necessary, I can live without and always use start-end-tag notation.

Received on Friday, 12 July 2002 13:58:02 UTC