summaryrefslogtreecommitdiff
path: root/beautifulsoup/builder/__init__.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2011-02-26 20:57:51 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2011-02-26 20:57:51 -0500
commit1f4733fd1215411752c4d793d93edbc007fece12 (patch)
treeac9313b90f2fb5b0e93d5c1a4788c5a4ba0b523e /beautifulsoup/builder/__init__.py
parent7db58f67d60bf2675613e38d2d8daeeadc5522db (diff)
parentef5770589595e80cbd9690b64504a2166b3558fd (diff)
Emit an XML declaration when appropriate. I'm not totally happy with this, but it's good enough for now.
Diffstat (limited to 'beautifulsoup/builder/__init__.py')
-rw-r--r--beautifulsoup/builder/__init__.py4
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'])