W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2009

Re: Is it possible to preserve extra line breaks when using [input-xml: yes] [indent: yes]

From: Arnaud Desitter <arnaud02@users.sourceforge.net>
Date: Tue, 28 Apr 2009 16:26:42 +0100
Message-ID: <a240ddd00904280826i6be2018ap69083cc8d902f092@mail.gmail.com>
To: Robert Parks <robertjparks@gmail.com>
Cc: html-tidy@w3.org
Hi,
Try http://tidy.sourceforge.net/docs/quickref.html#vertical-space
Regards,

On 28/04/2009, Robert Parks <robertjparks@gmail.com> wrote:
> Say xml input is:
>
> <root>
> <a><b>c</b></a>
>
> <a><b>c</b></a>
> </root>
>
> When I run with:
> input-xml: yes
> indent:yes
> indent-spaces:2
>
> It strips the newlines:
> <root>
>  <a>
>    <b>c</b>
>  </a>
>  <a>
>    <b>c</b>
>  </a>
> </root>
>
> I would rather have the output to be:
>
> <root>
>  <a>
>    <b>c</b>
>  </a>
>
>  <a>
>    <b>c</b>
>  </a>
> </root>
>
> Is there an parameter I can set so it preserves extra newlines? I am
> trying to copy the behavior of MS Visual Studio 2008.
>
> Thanks!
> Rob
>
>
>
Received on Tuesday, 28 April 2009 15:29:38 GMT

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