[Checkins] SVN: z3c.pt/trunk/z3c/pt/translation.py Only self-close tag if there are no child elements.

Malthe Borch mborch at gmail.com
Mon Mar 17 08:14:26 EDT 2008


Log message for revision 84739:
  Only self-close tag if there are no child elements.

Changed:
  U   z3c.pt/trunk/z3c/pt/translation.py

-=-
Modified: z3c.pt/trunk/z3c/pt/translation.py
===================================================================
--- z3c.pt/trunk/z3c/pt/translation.py	2008-03-17 12:13:57 UTC (rev 84738)
+++ z3c.pt/trunk/z3c/pt/translation.py	2008-03-17 12:14:25 UTC (rev 84739)
@@ -208,7 +208,7 @@
         
         # tag
         if self.replace is None:
-            selfclosing = self.text is None and not dynamic
+            selfclosing = self.text is None and not dynamic and len(self) == 0
             tag = clauses.Tag(self.tag, self._attributes(), selfclosing=selfclosing)
 
             if self.omit:



More information about the Checkins mailing list