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

pass BODY_WIDTH as 3rd argument to html2text() #53

Closed
wants to merge 1 commit into from

Conversation

sebcode
Copy link

@sebcode sebcode commented May 1, 2015

setting BODY_WIDTH in config.py alone doesn't work anymore since
html2text has gone through some refactoring and probably broke backwards
compability.

now we need to pass BODY_WIDTH as 3rd argument to the html2text
initializer.

i think these are the html2text commits that let to this incompability:

Alir3z4/html2text@1ba191f
Alir3z4/html2text@192ca94

without this fix, changing body-width (to 0 for example) in
rss2email.cfg has no effect.

Signed-off-by: Sebastian Volland [email protected]

setting BODY_WIDTH in config.py alone doesn't work anymore since
html2text has gone through some refactoring and probably broke backwards
compability.

now we need to pass BODY_WIDTH as 3rd argument to the html2text
initializer.

i think these are the html2text commits that let to this incompability:

Alir3z4/html2text@1ba191f
Alir3z4/html2text@192ca94

without this fix, changing body-width (to 0 for example) in
rss2email.cfg has no effect.
@emillon
Copy link

emillon commented Jul 4, 2015

Hi,

Note that until Alir3z4/html2text#84 this kwarg was ignored. Now that it's fixed, setting the configuration should work.

But now that html2text is more powerful and can be configured without globals, this PR might be the occasion to modify the way it is configured in rss2email. Namely, removing setup_html2text completely and creating a properly configured html2text.HTML2Text instance in Feed._html2text (the method you patched).

What do you think?

@sebcode
Copy link
Author

sebcode commented Aug 7, 2015

Hey, that's great, thanks for your work! I guess this hotfix is obsolete then.

Definitely a good idea to refactor the setup code and clean this up, let's keep that in mind for a separate pull request.

@sebcode sebcode closed this Aug 7, 2015
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 this pull request may close these issues.

2 participants