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

Arnaud Desitter <[email protected]>
Newsgroups gmane.comp.web.html-tidy.user
Message-ID <[email protected]>
Hi,

Tidy re-formats its input and discards any incoming line breaks.
Therefore, it does not do what you want.

Regards,

On 28/04/2009, Robert Parks <[email protected]> wrote:
> I tested: vertical-space:true
>
> It seems like this adds arbitrary line breaks. I am trying to have it
> preserve the line breaks that already exist in the file.
>
> Thanks,
> Rob
>
>
>
> On Tue, Apr 28, 2009 at 11:26 AM, Arnaud Desitter
> <[email protected]> wrote:
> > Hi,
> > Try http://tidy.sourceforge.net/docs/quickref.html#vertical-space
> > Regards,
> >
> > On 28/04/2009, Robert Parks <[email protected]> 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
> >>
> >>
> >>
> >
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.