W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 1999

RE: Pretty printing XML

From: Tim Arnold <tiarno@wnt.sas.com>
Date: Fri, 29 Oct 1999 11:39:37 -0400
Message-ID: <DB8AFFD38A30D311BA6D0090276DC8C005E983@merc09.us.sas.com>
To: html-tidy@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:42 GMT