summaryrefslogtreecommitdiff
path: root/beautifulsoup/dammit.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/dammit.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/dammit.py')
-rw-r--r--beautifulsoup/dammit.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/beautifulsoup/dammit.py b/beautifulsoup/dammit.py
index 788f72d..9833bd4 100644
--- a/beautifulsoup/dammit.py
+++ b/beautifulsoup/dammit.py
@@ -37,7 +37,8 @@ class EntitySubstitution(object):
for codepoint, name in codepoint2name.items():
if codepoint == 34:
# There's no point in turning the quotation mark into
- # &quot--even in attribute values we quote the
+ # &quot;, unless it happens in an attribute value, which
+ # is done elsewhere.
continue;
character = unichr(codepoint)
characters.append(character)