W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2016

Re: How can we support in-block newline break preservation

From: Carmen Ramirez <mariar4085@gmail.com>
Date: Wed, 9 Mar 2016 13:04:32 -0800
Message-ID: <CAGdkRZ5_ShqQLsg1G9yE7Wt_pDXv-oZfGgQi=AdSbavBJXegkg@mail.gmail.com>
To: "Richard A. O'Keefe" <ok@cs.otago.ac.nz>
Cc: html-tidy@w3.org
Ramirez044@yahoo,com
On Mar 7, 2016 4:24 PM, "Richard A. O'Keefe" <ok@cs.otago.ac.nz> wrote:

> On 8/03/16 8:14 am, Geoff McLane wrote:
>
>> So I do not think Tidy is likely to support newline breaks in normal
>> text, but as said maybe I do not understand the question!
>>
>
> Actually, it does.  Sort of.  If you use the command line option -xml
> you can use the xml:space="preserve" attribute on an element and
> Tidy5 will not reflow the text of that element.  By actual test, you
> can even do <html xml:space="preserve">.
>
> Just to repeat: the input *has* to be well formed XML for this to
> work; if you tell Tidy5 the input is good XML and it isn't, you are
> to blame for whatever happens.
>
>
>
>



Received on Thursday, 10 March 2016 08:57:45 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 10 March 2016 08:57:49 UTC