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

Removing extra blank lines in XML files?

From: Harkavy, Roger <rharkavy@erisco.com>
Date: Mon, 5 Nov 2001 10:57:17 -0500
Message-ID: <D8B1BF354AC8BE4CAC25AF7C565C1C888B7A4C@ersusunisx5>
To: "'html-tidy@w3.org'" <html-tidy@w3.org>
This may be a very simple question that has an answer in the Tidy
documentation, but for some reason I'm not finding it. Please bear with
me...

I'm using Tidy to clean up some XML files. These files have sections that
look like this:

			<Category name="Indicative">
				<Item name="ActionNumber">3500_1000</Item>
				<Item name="StepId">CLMM</Item>
				<Item name="ExecutionType">E</Item>
				<Item name="ProgramName">cerbexe0</Item>
				<Item name="Architecture">2X</Item>
				<Item name="IniFile"
Eval="Y">goCerFacetsAction.goDictionary.Item("JobIniDirectory") &amp;
goCerFacetsAction.goDictionary.Item("StepId") &amp; "_" &amp;
goCerFacetsAction.goDictionary.Item("StepNumber") &amp; ".ini"</Item>
			</Category>

And Tidy fixes them up to look like this:

    <Category name="Indicative">
      <Item name="ActionNumber">3500_1000</Item>

      <Item name="StepId">CLMM</Item>

      <Item name="ExecutionType">E</Item>

      <Item name="ProgramName">cerbexe0</Item>

      <Item name="Architecture">2X</Item>

      <Item name="IniFile" Eval="Y">
      goCerFacetsAction.goDictionary.Item("JobIniDirectory") &amp;
      goCerFacetsAction.goDictionary.Item("StepId") &amp; "_" &amp;
      goCerFacetsAction.goDictionary.Item("StepNumber") &amp;
      ".ini"</Item>
    </Category>

Tidy fixes the indents and handles text wrapping beautifully. This makes me
very happy. Tidy also inserts extra blank lines between the <Item> tags, and
I can't find a way to turn this option off. This is frustrating me. Can
someone please give me any guidance for disabling this feature? Thanks in
advance for any help you can give me.

Also, when I get a response from someone on the list, should I just reply to
the individual's address, or to html-tidy@w3.org?
Received on Monday, 5 November 2001 10:59:14 GMT

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