html2text
html2text copied to clipboard
Unusual line break inside link when converting table
I got some unusual line breaks inside links when converting tables
Input
raw = """<td align="center" width="211">
<img alt="Algerian chorba with bird tongues 4" class="alignnone size-thumbnail wp-image-48225" height="150" src="https://www.amourdecuisine.fr/wp-content/uploads/2016/06/chorba-alg%C3%A9rienne-aux-langues-doiseaux-4-150x150.jpg" width="150"/>
<a href="https://www.amourdecuisine.fr/article-chorba-algerienne-aux-langues-doiseaux.html" target="_blank">
<strong>
chorba bird languages
</strong>
</a>
</td>"""
Output with line breaks in hyperlink
' [ **chorba bird languages**\n](https://www.amourdecuisine.fr/article-chorba-algerienne-aux-langues-\ndoiseaux.html)\n\n'
html2text 2018.1.9 Python 3.6
Is this solved?
I'm seeing this as well. The markdown tables are not rendered correctly.
you could solve it by setting the value of text_maker.body_width, eg:text_maker.body_width = 2000