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

Pretty printing XML

From: Jelks Cabaniss <jelks@jelks.nu>
Date: Thu, 28 Oct 1999 20:39:40 -0400
To: <html-tidy@w3.org>
Cc: "Dave Raggett" <dsr@w3.org>
Message-ID: <NBBBICMNIPCICMKJECCBAELLDAAA.jelks@jelks.nu>
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 GMT

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