Skip to content

Commit 0f17e8a

Browse files
committed
Merge branch '7.0branch'
2 parents 65365bd + a97b5c4 commit 0f17e8a

File tree

16 files changed

+1941
-320
lines changed

16 files changed

+1941
-320
lines changed

AdvancedHTMLParser/Formatter.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2015 Tim Savannah under LGPLv3.
1+
# Copyright (c) 2015, 2017 Tim Savannah under LGPLv3.
22
# See LICENSE (https://gnu.org/licenses/lgpl-3.0.txt) for more information.
33
# HTML formatting (HTML->XHTML conversion as well)
44

@@ -27,6 +27,8 @@
2727
import codecs
2828

2929

30+
__all__ = ('AdvancedHTMLFormatter', )
31+
3032
class AdvancedHTMLFormatter(HTMLParser):
3133
'''
3234
A formatter for HTML. Note this does not understand CSS, so if you are enabling preformatted text based on css rules, it will not work.
@@ -167,7 +169,7 @@ def handle_starttag(self, tagName, attributeList, isSelfClosing=False):
167169
raise MultipleRootNodeException()
168170

169171
if self.inPreformatted is 0:
170-
newTag.indent = self._getIndent()
172+
newTag._indent = self._getIndent()
171173

172174
if tagName in PREFORMATTED_TAGS:
173175
self.inPreformatted += 1

0 commit comments

Comments
 (0)