summaryrefslogtreecommitdiff
path: root/NEWS.txt
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2018-07-15 19:50:15 -0400
committerLeonard Richardson <leonardr@segfault.org>2018-07-15 19:50:15 -0400
commit999a1ad671036ccbb4704d402dff624083fbee90 (patch)
treedbbedfcbb0590ccab3098f52c0c5f6ec25991d25 /NEWS.txt
parentdb0ef1662efba41a111861d652a248385f7baac9 (diff)
downloadbeautifulsoup4-999a1ad671036ccbb4704d402dff624083fbee90.tar.gz
Introduced the Formatter system. [bug=1716272].
Diffstat (limited to 'NEWS.txt')
-rw-r--r--NEWS.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/NEWS.txt b/NEWS.txt
index e22e88f..45a6952 100644
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -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) =