Skip to content

Commit

Permalink
Release 4.16: Lots of HTML to ANSI improvements!
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Jul 21, 2018
1 parent 6971adb commit a1743f3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,25 @@ Changelog`_ . This project adheres to `semantic versioning`_.
.. _Keep a Changelog: http://keepachangelog.com/
.. _semantic versioning: http://semver.org/

`Release 4.16`_ (2018-07-21)
----------------------------

More HTML to ANSI improvements:

- 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).

.. _Release 4.16: https://github.com/xolox/python-humanfriendly/compare/4.15.1...4.16

`Release 4.15.1`_ (2018-07-14)
------------------------------

Expand Down
4 changes: 2 additions & 2 deletions humanfriendly/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Human friendly input/output in Python.
#
# Author: Peter Odding <peter@peterodding.com>
# Last Change: July 14, 2018
# Last Change: July 21, 2018
# URL: https://humanfriendly.readthedocs.io

"""The main module of the `humanfriendly` package."""
Expand Down Expand Up @@ -40,7 +40,7 @@
from humanfriendly.compat import is_string, monotonic

# Semi-standard module versioning.
__version__ = '4.15.1'
__version__ = '4.16'

# Spinners are redrawn at most this many seconds.
minimum_spinner_interval = 0.2
Expand Down

0 comments on commit a1743f3

Please sign in to comment.