html2text
html2text copied to clipboard
The text layout changes
Hi.
I ran the following simple HTML buffer through the library:
<div dir="ltr">I received an e-mail from one of your colleagues a short while back regarding an invoice i received</div>
and to my surprise, I got back:
I received an e-mail from one of your colleagues a short while back
regarding an invoice i received
Why are you adding the extra newline between "back" and "regarding"??
You've probably discovered it by now, but the class has an option for 'width' which defaults to 70 characters. Set this to 0 to prevent the new line. You pass the options array in with the constructor.
You've probably discovered it by now, but the class has an option for 'width' which defaults to 70 characters. Set this to 0 to prevent the new line. You pass the options array in with the constructor.
Some "genius" (no) came up with adding this by default. Thanks for the corrupted db.