Alir3z4 / html2text

Convert HTML to Markdown-formatted text.
alir3z4.github.io/html2text/
GNU General Public License v3.0
1.8k stars 273 forks source link

HTML entities sometimes add an extra space #238

Closed jdufresne closed 5 years ago

jdufresne commented 5 years ago

Version by html2text --version

html2text 2018.1.9

Test script

html2text.html2text('<p><strong>hello</strong> world &gt;</p>')

Expected:

'**hello** world >\n\n'

Actual:

'**hello** world  >\n\n'

Notice there are two spaces before >.

Python version python --version

Python 3.7.2

jdufresne commented 5 years ago

Fixed in 46ecef3afb05d281f377de2ef07d4c17cc29ae6e