diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-26 20:56:47 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-26 20:56:47 -0500 |
commit | ef5770589595e80cbd9690b64504a2166b3558fd (patch) | |
tree | ac9313b90f2fb5b0e93d5c1a4788c5a4ba0b523e /beautifulsoup/builder/__init__.py | |
parent | 48e0b434806f557e086abdf0393d071663e3770a (diff) |
Emit an XML declaration when appropriate.
Diffstat (limited to 'beautifulsoup/builder/__init__.py')
-rw-r--r-- | beautifulsoup/builder/__init__.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/beautifulsoup/builder/__init__.py b/beautifulsoup/builder/__init__.py index fb10628..10c6b7f 100644 --- a/beautifulsoup/builder/__init__.py +++ b/beautifulsoup/builder/__init__.py @@ -77,7 +77,7 @@ class TreeBuilder(object): features = [] - assume_html = False + is_xml = False preserve_whitespace_tags = set() empty_element_tags = None # A tag will be considered an empty-element # tag when and only when it has no contents. @@ -185,8 +185,6 @@ class HTMLTreeBuilder(TreeBuilder): Such as which tags are empty-element tags. """ - assume_html = True - preserve_whitespace_tags = set(['pre', 'textarea']) empty_element_tags = set(['br' , 'hr', 'input', 'img', 'meta', 'spacer', 'link', 'frame', 'base']) |