Tidy adding returns inside xml elements

<note> I sent this message about 2 weeks ago and never got a response.  I
just checked the mail archive
http://www.geocrawler.com/archives/3/12898/2002/6/0/ for the original
message (6/20/02)and never saw it in the archive so I'm sending it again in
hopes that it makes it through.</note>

Tidy seems to be adding a return inside empty elements.  Is there any way
to prevent this?

XML file I'm sending into tidy (b.xml):

<?xml version="1.0"?>
<root>
  <empty/>
  <empty></empty>
</root>

Using the following command line:
  tidy.exe -config tidy.ini b.xml

and the following tidy.ini:

output-xml: yes
input-xml: yes
indent: yes
indent-cdata: no
wrap: 0
escape-cdata: yes
markup: yes
clean: yes

I get the following output:

<?xml version="1.0"?>
<root>
<empty />


<empty>
</empty>

 </root>

Note the return that is put inside the 2nd empty node.

I'm using tidy release: "(release date: 1st May 2002; built on May  7 2002,
at 20:00:42)"

I've tried a number of options but I cannot get tidy to produces something
more like this:

<?xml version="1.0"?>
<root>
<empty />
<empty />
 </root>

I really don't care about the empty space between nodes, but the return that
gets put in the 2nd empty node is causing me problems.  Is there anything I
can do to fix this problem?

Thanks.
-- 
Kipp E. Howard - Sr. Software Engineer @ LexisNexis CourtLink
kipp.howard@courtlink.com   
(425) 372-1837 or (800) 774-7317 ext 1837


-- 
Kipp E. Howard - Sr. Software Engineer @ LexisNexis CourtLink
kipp.howard@courtlink.com   
(425) 372-1837 or (800) 774-7317 ext 1837

Received on Thursday, 11 July 2002 10:55:19 UTC