forked from pool/python-humanfriendly
93ebbc5354d29d706d952563fb7dbcd1c5d976582162de308abd9e567f864d1d
- Update to 4.16.1: * Added humanfriendly.text.compact_empty_lines() function. * Enable optional html_to_ansi(data[, callback]) argument. * Added a code sample and screenshot to the HTMLConverter documentation. * Emit vertical whitespace for block tags like <div>, <p> and <pre> and post-process the generated output in __call__() to compact empty lines. * Don’t pre-process preformatted text using the user defined text callback. * Improve robustness against malformed HTML (previously an IndexError would be raised when a closing </a> tag was encountered without a corresponding opening <a> tag). * Emit an ANSI reset code when HTMLConverter.close() is called and a style is still active (improves robustness against malformed HTML). * Support for 24-bit (RGB) terminal colors. Works by accepting a tuple or list with three integers representing an RGB (red, green, blue) color. * Support for italic text rendering on the terminal. * Make format_timespan() accept datetime.timedelta objects (fixes #27). * Add license key to setup.py script (pointed out to me in coloredlogs pull request #53). * Added the Timer.sleep() method to sleep “no more than” the given number of seconds. * Added the format_rst_table() function to render RST (reStructuredText) tables. - Enable and make sure tests are run OBS-URL: https://build.opensuse.org/request/show/630720 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=6
Description
No description provided
Languages
Diff
100%