RE: Pretty printing XML

Hi, 
I, like Jelks, am having trouble
with line wrapping on my xml 'inline' tags.
 
I've had the problem both before and after the
Oct. 22 version.

I thought that the 'xml' flag is getting ignored somewhere...
the two subroutines PFlushline and PCondFlushLine
each output newlines; I thought there would be
a conditional in there, but I haven't been able
to correct the problem that way--I must be 
barking up the wrong tree.

--Tim Arnold
============
Jelks Cabaniss [jelks@jelks.nu] wrote:
============
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 Friday, 29 October 1999 11:40:14 UTC