diff options
author | Leonard Richardson <leonardr@segfault.org> | 2018-07-15 19:50:15 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2018-07-15 19:50:15 -0400 |
commit | ad2850dfe321856331c939ad0f5c5a636a07091b (patch) | |
tree | a9b4ae0a151c9f470e7c7ce4703a6559e57c4dfd /NEWS.txt | |
parent | 03593ede7a56a5bfa21825f1e87187b0afccc620 (diff) |
Introduced the Formatter system. [bug=1716272].
Diffstat (limited to 'NEWS.txt')
-rw-r--r-- | NEWS.txt | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -14,10 +14,12 @@ * Stopped HTMLParser from raising an exception in very rare cases of bad markup. [bug=1708831] -* It's possible for a TreeBuilder subclass to specify that void - elements should be represented as "<element>" rather than - "<element/>", by setting TreeBuilder.void_element_close_prefix to - the empty string. [bug=1716272] +* Added a new formatter, "html5", which represents void elements + elements as "<element>" rather than "<element/>". [bug=1716272] + +* You can get finer control over formatting by subclassing + bs4.element.Formatter and passing a Formatter instance into (e.g.) + encode(). [bug=1716272] = 4.6.0 (20170507) = |