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

Page break does not work, when line starts with <b> #143

Closed
Tratoschek opened this issue Sep 5, 2016 · 2 comments
Closed

Page break does not work, when line starts with <b> #143

Tratoschek opened this issue Sep 5, 2016 · 2 comments

Comments

@Tratoschek
Copy link

Per default lines are wrapped after 78 chars. This does not work, when starting with .

  • Version by pyhtml2text --version: pyhtml2text 2016.5.29
  • Test script
>>> import html2text
>>> '\n' in html2text.html2text('<b>text</b> and a very ' + 20 * 'long ' + 'line').strip('\n')
False
>>> '\n' in html2text.html2text('text and a very ' + 20 * 'long ' + 'line').strip('\n')
True

Starting with italic tag works fine, btw.

  • Python version python --version: Python 3.4.3
@theSage21
Copy link
Collaborator

I'll look into this in a while. If you do have a PR, fire away.

Alir3z4 added a commit that referenced this issue Jun 26, 2017
Fix #143: Fix line wrapping for the lines starting with bold
@Alir3z4
Copy link
Owner

Alir3z4 commented Jun 26, 2017

@Tratoschek this has been fixed in #172
Feel free to report if the issue still occurs.

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

3 participants