Tidy adding returns between xml elements

Tidy seems to be adding a return between 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 in 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

Received on Wednesday, 26 June 2002 01:06:09 UTC