Re: How can we support in-block newline break preservation
Carmen Ramirez <[email protected]> Wed, 9 Mar 2016 13:04:32 -0800
| Newsgroups | gmane.comp.web.html-tidy.user |
|---|---|
| Message-ID | <CAGdkRZ5_ShqQLsg1G9yE7Wt_pDXv-oZfGgQi=AdSbavBJXegkg@mail.gmail.com> |
--089e013d1e5c613ac9052da40b74 Content-Type: multipart/alternative; boundary=089e013d1e5c613ac5052da40b72 --089e013d1e5c613ac5052da40b72 Content-Type: text/plain; charset=UTF-8 Ramirez044@yahoo,com On Mar 7, 2016 4:24 PM, "Richard A. O'Keefe" <[email protected]> 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. > > > > --089e013d1e5c613ac5052da40b72 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <p dir=3D"ltr">Ramirez044@yahoo,com</p> <div class=3D"gmail_quote">On Mar 7, 2016 4:24 PM, "Richard A. O'K= eefe" <<a href=3D"mailto:[email protected]">[email protected]</a>&g= t; wrote:<br type=3D"attribution"><blockquote class=3D"gmail_quote" style= =3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 8/03/= 16 8:14 am, Geoff McLane wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> 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!<br> </blockquote> <br> Actually, it does.=C2=A0 Sort of.=C2=A0 If you use the command line option = -xml<br> you can use the xml:space=3D"preserve" attribute on an element an= d<br> Tidy5 will not reflow the text of that element.=C2=A0 By actual test, you<b= r> can even do <html xml:space=3D"preserve">.<br> <br> Just to repeat: the input *has* to be well formed XML for this to<br> work; if you tell Tidy5 the input is good XML and it isn't, you are<br> to blame for whatever happens.<br> <br> <br> <br> </blockquote></div> --089e013d1e5c613ac5052da40b72-- --089e013d1e5c613ac9052da40b74 Content-Type: application/octet-stream; name=".sdinfo" Content-Disposition: attachment; filename=".sdinfo" Content-Transfer-Encoding: base64 X-Attachment-Id: 1528359734106652672-local0 MDgwYjA0ZTRhOTAwNDAzN1w2Asmzddi511o4yFcOtCHzhHZ++c7A/36ktjYHgi9V0vFRlM9a/rs7 PqR+409WynvfMWTeWWiOX2SP3X4Xa+8= --089e013d1e5c613ac9052da40b74--