aaronsw / html2text

Convert HTML to Markdown-formatted text.
http://www.aaronsw.com/2002/html2text/
GNU General Public License v3.0
2.61k stars 412 forks source link

Wraps long URLs #7

Open stefanor opened 13 years ago

stefanor commented 13 years ago

Forwarding http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=616090:

Long URLs are wrapped, which they probably shouldn't be.

Example:

<html>
<head><title>Test</title></head>
<body>
<p>And <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=multiarch;users=debian-dpkg@lists.debian.org">here</a> is a long link I had at hand.</p>
</body>
</html>

Results in:

And [here][1] is a long link I had at hand.

   [1]: http://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=multiarch;users
=debian-dpkg@lists.debian.org
alexgarel commented 13 years ago

Same here, this is a problem

Here is how I circumvent the problem in case it's of any use to someone: https://github.com/Fantomas42/emencia-django-newsletter/issues/#issue/30

abeals commented 12 years ago

Thanks for the workaround, @alexgarel -- very useful. It would be nice to see this option "don't wrap URLs" added as an option.