Pretty printing XML

I tried the Oct. 22 Tidy on this snippet to check it's XML "pretty printing"
capabilities:

	<doc>
	<fee><fi><fo><foo>foo stuff</foo></fo></fi></fee>
	</doc>

Here are the relevant config options, followed by Tidy's output:

	input-xml: yes
	output-xml: yes
	indent: auto
	add-xml-pi: no
	new-inline-tags: foo
	new-blocklevel-tags: doc, fee, fi, fo

	<doc>
	  <fee>
	    <fi>
	      <fo>
	        <foo>
	          foo stuff
	        </foo>
	      </fo>
	    </fi>
	  </fee>
	</doc>

Shouldn't it be:

	<doc>
	  <fee>
	    <fi>
	      <fo><foo>foo stuff</foo></fo>
	    </fi>
	  </fee>
	</doc>

?

/Jelks

Received on Thursday, 28 October 1999 20:39:27 UTC