Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML entities sometimes add an extra space #238

Closed
jdufresne opened this issue Feb 25, 2019 · 1 comment
Closed

HTML entities sometimes add an extra space #238

jdufresne opened this issue Feb 25, 2019 · 1 comment

Comments

@jdufresne
Copy link
Collaborator

jdufresne commented Feb 25, 2019

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
Copy link
Collaborator Author

Fixed in 46ecef3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant