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
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"

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

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

	          foo stuff

Shouldn't it be:

	      <fo><foo>foo stuff</foo></fo>


Received on Friday, 29 October 1999 11:40:14 UTC

This archive was generated by hypermail 2.3.1 : Friday, 13 July 2018 08:58:58 UTC