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

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

From: Richard A. O'Keefe <ok@cs.otago.ac.nz>
Date: Tue, 8 Mar 2016 13:19:45 +1300
To: <html-tidy@w3.org>
Message-ID: <973626f9-b726-2552-f852-33c99168ccb5@cs.otago.ac.nz>
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 Tuesday, 8 March 2016 00:20:21 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 8 March 2016 00:20:24 UTC