Closed GoogleCodeExporter closed 9 years ago
Hi, I tested this in r2179, but it works fine for me. See:
http://code.google.com/p/iaml/source/browse/trunk/org.openiaml.model.runtime/src
/include/html2text/tests/test3.html?spec=svn2179&r=2179
http://code.google.com/p/iaml/source/browse/trunk/org.openiaml.model.runtime/src
/include/html2text/tests/test3.txt?spec=svn2179&r=2179
Are you outputting the result to HTML? Newlines in HTML are not rendered unless
you
put them in a <pre>.
Original comment by soundasleep
on 13 May 2010 at 4:45
try 1<br />2<br />3<br />4<br />5 6
it returns:
12345 6
2345 6
345 6
45 6
5 6
Original comment by j.ripa...@gmail.com
on 14 May 2010 at 11:10
Hi, see r2217: it definitely works. Note that it returns Unix newlines (\n), not
Windows newlines (\r\n), so if you open up the result in Notepad on Windows the
newlines might not work. But you say you are using CentOS. How are you calling
this
method and displaying the output?
I even tested it directly with the Windows command prompt:
> php -r "require('../html2text.php'); echo convert_html_to_text('1<br />2<br
/>3<br
/>4 5');"
1
2
3
4 5
>
Original comment by soundasleep
on 16 May 2010 at 11:44
Original comment by soundasleep
on 8 Jun 2010 at 2:42
Original comment by soundasleep
on 8 Jun 2010 at 2:42
Original issue reported on code.google.com by
j.ripa...@gmail.com
on 13 May 2010 at 12:55