[Checkins] SVN: Sandbox/malthe/chameleon.core/src/chameleon/core/translation.py Slightly more accurate scan.
Malthe Borch
mborch at gmail.com
Wed Nov 12 18:28:23 EST 2008
Log message for revision 92896:
Slightly more accurate scan.
Changed:
U Sandbox/malthe/chameleon.core/src/chameleon/core/translation.py
-=-
Modified: Sandbox/malthe/chameleon.core/src/chameleon/core/translation.py
===================================================================
--- Sandbox/malthe/chameleon.core/src/chameleon/core/translation.py 2008-11-12 23:21:43 UTC (rev 92895)
+++ Sandbox/malthe/chameleon.core/src/chameleon/core/translation.py 2008-11-12 23:28:23 UTC (rev 92896)
@@ -539,7 +539,7 @@
require_wrapping = no_xml_declaration and no_doctype_declaration
if no_xml_declaration is False:
- self.xml_declaration = body[:body.find('\n')+1]
+ self.xml_declaration = body[:body.find('\n', body.find('?>'))+1]
# add default namespace declaration if no explicit document
# type has been set
More information about the Checkins
mailing list