RE: Removing extra blank lines in XML files?

Okay, I also pored over the documentation at the new site (sourceforge.net)
and still can't find any answers. Any tips?

-----Original Message-----
From: Harkavy, Roger [mailto:rharkavy@erisco.com]
Sent: Monday, November 05, 2001 10:57 AM
To: 'html-tidy@w3.org'
Subject: Removing extra blank lines in XML files?


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 Wednesday, 7 November 2001 10:34:32 UTC