summaryrefslogtreecommitdiff
path: root/xml2po/xml2po.py
diff options
context:
space:
mode:
Diffstat (limited to 'xml2po/xml2po.py')
-rwxr-xr-xxml2po/xml2po.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/xml2po/xml2po.py b/xml2po/xml2po.py
index f46427f..d512744 100755
--- a/xml2po/xml2po.py
+++ b/xml2po/xml2po.py
@@ -260,7 +260,7 @@ def isFinalNode(node):
final_children = 1
child = node.children
while child and final_children:
- if not child.isBlankNode() and not isFinalNode(child):
+ if not child.isBlankNode() and child.type != 'comment' and not isFinalNode(child):
final_children = 0
child = child.next
if final_children: