Commits

Rick Copeland committed 4bd65a7

XML Comments tested

  • Participants
  • Parent commits 2f3fad7

Comments (0)

Files changed (2)

-* XML Comment tests
 * XML attribute support (non-py:-namespaced)
 * XML attributes: py:content, py:replace, py:strip, py:attrs
 * XML serialization to HTML4, HTML5

File fastpt/v2/xml_template.py

             yield x
 
     def _compile_comment(self, node):
-        if node.data.startswith('!'):
+        if not node.data.startswith('!'):
             yield ir.TextNode('<!-- %s -->' % node.data)
 
     def _compile_for(self, node):