W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2007

PHP / libtidy / problem with output (line breaks)

From: Wolfgang Klinger <wolfgang@wazum.com>
Date: Fri, 23 Nov 2007 15:07:23 +0100
Message-Id: <A7AA2748-F842-482E-BE4D-A16ADE4ECE41@wazum.com>
To: html-tidy@w3.org

*hiya!*

I use libtidy with PHP4 (libTidy Build Date: 1st December 2004)
and have a problem.

These are the options:

'doctype' => 'omit',
'show-body-only' => 1,
'output-xhtml' => 1,
'indent' => 0,
'drop-proprietary-attributes' => 1,
'wrap-attributes' => 0,
'wrap-sections' => 0,
'break-before-br' => 0,
'wrap' => 0

Now if I let tidy parse the text

-----
A line outside.
<p>Line 1<br />Line 2<br />Line 3</p>
-----
(without a line break)

the output is

-----
A line outside.
<p>Line 1<br />
Line 2<br />
Line 3</p>
-----


I found no option to change this behavior.
Unfortunately I can't work with the line break after each <br /> tag
(it's the same with <li> and possibly other tags).

Any help appreciated... :-)


tia, bye
Wolfgang
Received on Friday, 23 November 2007 18:01:29 GMT

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