Page MenuHomeSolus

Update python-html2text to 2019.9.26 & switch to python3
ClosedPublic

Authored by kyrios123 on Oct 13 2019, 10:24 AM.
Tags
None
Referenced Files
F11070306: D7389.id17753.diff
Sat, Aug 12, 12:08 AM
F11052376: D7389.diff
Thu, Aug 10, 9:18 PM
F11032453: D7389.id17721.diff
Wed, Aug 9, 2:19 PM
F11016955: D7389.id17721.diff
Sat, Aug 5, 9:33 PM
F11000621: D7389.id17721.diff
Sat, Jul 29, 12:34 PM
F11000597: D7389.id17721.diff
Sat, Jul 29, 11:50 AM
F10923557: D7389.id17721.diff
Jul 9 2023, 11:37 PM
F10922910: D7389.id.diff
Jul 9 2023, 8:41 PM
Subscribers

Details

Summary
  • Add support for wrapping list items.
  • Handle ‎/‏ marks mid-text within stressed tags or right after stressed tags.
  • Images_as_html config option to always generate an img html tag. preserves "height", "width" and "alt" if possible.
  • Remove support for retrieving HTML over the network.
  • Add __main__.py module to allow running the CLI using python -m html2text ....
  • Correct spacing when a HTML entity follows a non-stressed tags which follow a stressed tag.
  • Remove unused or deprecated:
    • html2text.compat.escape()
    • html2text.config.RE_UNESCAPE
    • html2text.HTML2Text.replaceEntities()
    • html2text.HTML2Text.unescape()
    • html2text.unescape()
  • Handle LEFT-TO-RIGHT MARK after a stressed tag.

Signed-off-by: Pierre-Yves <pyu@riseup.net>

Test Plan

Tested with calibre

Diff Detail

Repository
R4723 python-html2text
Lint
Lint Not Applicable
Unit
Tests Not Applicable