diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-26 20:57:51 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-26 20:57:51 -0500 |
commit | 1f4733fd1215411752c4d793d93edbc007fece12 (patch) | |
tree | ac9313b90f2fb5b0e93d5c1a4788c5a4ba0b523e /beautifulsoup/dammit.py | |
parent | 7db58f67d60bf2675613e38d2d8daeeadc5522db (diff) | |
parent | ef5770589595e80cbd9690b64504a2166b3558fd (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.py | 3 |
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 - # "--even in attribute values we quote the + # ", unless it happens in an attribute value, which + # is done elsewhere. continue; character = unichr(codepoint) characters.append(character) |