-
Notifications
You must be signed in to change notification settings - Fork 274
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
Protect links, surrounding them with angle brackets #50
Conversation
… them with line-wrap (inline and reference).
dest="protect_links", | ||
action="store_true", | ||
default=config.PROTECT_LINKS, | ||
help="protect links from line breaks surrounding them with angle brackets") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pep8 please ;)
@JocelynDelalande, @stefanor can we consider this pull-request as a fix for #38 as well ? |
It's more of a possible work around than a fix. There are many uses for this besides e-mail. And my text-mode mail client doesn't treat |
@stefanor Thanks for the comment. @JocelynDelalande could you please solve the merge conflicts? I'll merge and release by end of the day. |
Conflicts: test/test_html2text.py
Protect links, surrounding them with angle brackets Thanks @JocelynDelalande
to avoid breaking them with line-wrap (inline and reference).
Particularly useful with text mail clients. Complies with markdown syntax, tested to work in markdown.js and pandoc backends.