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
commitad2850dfe321856331c939ad0f5c5a636a07091b (patch)
treea9b4ae0a151c9f470e7c7ce4703a6559e57c4dfd /NEWS.txt
parent03593ede7a56a5bfa21825f1e87187b0afccc620 (diff)
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) =