diff markup/output.py @ 158:3f23fafeef99 trunk

* Add test case for SVG content embedded in an HTML document. * The XHTML serializer now assumes that elements in a foreign namespace (such as SVG or MathML) can be serialized as empty tags (`<foo />`).
author cmlenz
date Wed, 16 Aug 2006 21:29:48 +0000
parents 47bbd9d2a5af
children 553866249cb0
line wrap: on
line diff
--- a/markup/output.py
+++ b/markup/output.py
@@ -231,7 +231,7 @@
                         buf += [' ', attrname, '="', escape(value), '"']
                 ns_attrib = []
 
-                if (not tag.namespace or tag in namespace) and \
+                if (tag.namespace and tag not in namespace) or \
                         tagname in empty_elems:
                     kind, data, pos = stream.next()
                     if kind is END:
Copyright (C) 2012-2017 Edgewall Software