You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ChangeLog
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,25 @@
1
+
* 8.1.2 - Oct 16 2018
2
+
3
+
- Add two new formatters to AdvancedHTMLParser.Formatter - AdvancedHTMLSlimTagFormatter and AdvancedHTMLSlimTagMiniFormatter
4
+
5
+
* These represent the pretty-printer and mini-printer respectively, but will omit the trailing space on start tags,
6
+
7
+
e.x. <span id="abc" > will become <span id="abc">
8
+
9
+
* By default, self-closing tags will retain their trailing space, e.x. <hr class="bigline" />.
10
+
This is for xhtml compatibility so that the "/" does not become part of the previous attribute or its own attribute
11
+
12
+
This can be toggled-off by passing "slimSelfClosing=True" to either of the new formatters, and your output will be <hr class="bigline"/>
13
+
14
+
- Added tests and documentation for the two new formatter types
15
+
16
+
- Ensure that AdvancedHTMLMiniFormatter is exported by the AdvancedHTMLParser.__init__.py
17
+
18
+
- Add both new SlimTag formatters to be exported by AdvancedHTMLParser.__init__.py
19
+
20
+
- Update the version reference within the pydoc url within the READMEs to bypass caching of previous versions
21
+
22
+
1
23
* 8.1.1 - Oct 15 2018
2
24
3
25
- Add AdvancedHTMLMiniFormatter to top-module level (so from AdvancedHTMLParser import AdvancedHTMLMiniFormatter works as well as from AdvancedHTMLParser.Formatter import AdvancedHTMLMiniFormatter)
0 commit comments