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

Unnecessary spaces around <b></b> #324

Closed
vyahhi opened this issue May 28, 2020 · 1 comment · Fixed by #342
Closed

Unnecessary spaces around <b></b> #324

vyahhi opened this issue May 28, 2020 · 1 comment · Fixed by #342

Comments

@vyahhi
Copy link

vyahhi commented May 28, 2020

The html code X<b>one</b>, two is translated into X **one** , two\n\n, but should be translated into X**one**, two\n\n instead (without spaces around one).

  • Version by html2text --version: 2020.1.16

  • Test script

import html2text
h = html2text.HTML2Text()
h.handle('X<b>one</b>, two')
  • Python version python --version: 3.8.2
@snarfed
Copy link
Contributor

snarfed commented Nov 29, 2020

Also happens with other inline tags, eg (<em>foo</em> bar is translated to ( __foo__ bar.

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

Successfully merging a pull request may close this issue.

2 participants