W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2001

Blank lines in a tidied XML File

From: Paice, Doug <Doug.Paice@justice.wa.gov.au>
Date: Wed, 1 Aug 2001 04:33:08 -0400 (EDT)
Message-ID: <3A9963A0E26ED5119C7200D0B7A8D76ACB2AAF@mojexch3.moj.wa.gov.au>
To: "'html-tidy@w3.org'" <html-tidy@w3.org>
Hi,

I've been using HTML tidy for some time to format XML but there's been one
niggling annoyance:
I get a heap of blank lines in the output.
Eg:
    <REFERENCES>
      <REF>
        <NAME>GROUP_TEMPLATE</NAME>

        <VIA>SITTING_TEMPLATES</VIA>

        <TABLE>SITTING_TEMPLATE</TABLE>

        <CARDINALITY>1..n</CARDINALITY>
      </REF>

      <REF>
        <NAME>GROUP_TEMPLATE</NAME>

        <VIA>SITTING_TEMPLATES</VIA>

        <TABLE>SITTING_TEMPLATE</TABLE>

        <CARDINALITY>1..n</CARDINALITY>
      </REF>
    </REFERENCES>

when what I want is:
    <REFERENCES>
      <REF>
        <NAME>GROUP_TEMPLATE</NAME>
        <VIA>SITTING_TEMPLATES</VIA>
        <TABLE>SITTING_TEMPLATE</TABLE>
        <CARDINALITY>1..n</CARDINALITY>
      </REF>
      <REF>
        <NAME>GROUP_TEMPLATE</NAME>
        <VIA>SITTING_TEMPLATES</VIA>
        <TABLE>SITTING_TEMPLATE</TABLE>
        <CARDINALITY>1..n</CARDINALITY>
      </REF>
    </REFERENCES>

my config file is:
indent: auto
indent-spaces: 2
wrap: 7200
markup: yes
output-xml: yes
input-xml: yes
show-warnings: yes
numeric-entities: yes
quote-marks: yes
quote-nbsp: yes
quote-ampersand: no
break-before-br: no
uppercase-tags: no
uppercase-attributes: no
char-encoding: latin1
new-inline-tags: cfif, cfelse, math, mroot, 
  mrow, mi, mn, mo, msqrt, mfrac, msubsup, munderover,
  munder, mover, mmultiscripts, msup, msub, mtext,
  mprescripts, mtable, mtr, mtd, mth
new-blocklevel-tags: cfoutput, cfquery
new-empty-tags: cfelse

Thanks
Doug Paice
------------------------------------------------------------------------------------------------------- The information contained in this email may be private and personal or otherwise confidential. If you are not the intended recipient, any use, disclosure or copying of any part of the information is unauthorised. If you have received this email in error, please inform the sender and delete the document.
Received on Thursday, 2 August 2001 11:10:01 GMT

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