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 | 999a1ad671036ccbb4704d402dff624083fbee90 (patch) | |
tree | dbbedfcbb0590ccab3098f52c0c5f6ec25991d25 /NEWS.txt | |
parent | db0ef1662efba41a111861d652a248385f7baac9 (diff) | |
download | beautifulsoup4-999a1ad671036ccbb4704d402dff624083fbee90.tar.gz |
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) = |