diff genshi/output.py @ 689:3881a602048a trunk

The XHTML serializer now strips `xml:space` attributes as they are only allowed on very few tags.
author cmlenz
date Wed, 12 Mar 2008 20:48:52 +0000
parents d8571da25bc5
children 5420fe9d99a9
line wrap: on
line diff
--- a/genshi/output.py
+++ b/genshi/output.py
@@ -309,6 +309,8 @@
                         value = attr
                     elif attr == u'xml:lang' and u'lang' not in attrib:
                         buf += [' lang="', escape(value), '"']
+                    elif attr == u'xml:space':
+                        continue
                     buf += [' ', attr, '="', escape(value), '"']
                 if kind is EMPTY:
                     if tag in empty_elems:
Copyright (C) 2012-2017 Edgewall Software