diff options
author | Danilo Šegan <danilo@src.gnome.org> | 2006-03-31 19:15:15 +0000 |
---|---|---|
committer | Danilo Šegan <danilo@src.gnome.org> | 2006-03-31 19:15:15 +0000 |
commit | 6f1c2b711320702e7e1a9f14b3b1639a168e4871 (patch) | |
tree | 14f96665c2b25a504dcd912e86c602b1cbadc92c | |
parent | ba303bbdaf52b0e29bc141c1d07a7d44f2df4e82 (diff) | |
download | gnome-doc-utils-6f1c2b711320702e7e1a9f14b3b1639a168e4871.tar.gz |
Ignore blank child nodes in isFinalNode.
-rw-r--r-- | xml2po/ChangeLog | 6 | ||||
-rwxr-xr-x | xml2po/xml2po.py | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/xml2po/ChangeLog b/xml2po/ChangeLog index b0fd1f0..8242802 100644 --- a/xml2po/ChangeLog +++ b/xml2po/ChangeLog @@ -1,3 +1,9 @@ +2006-03-31 Danilo Šegan <danilo@gnome.org> + + Fixes bug #172784. + + * xml2po.py (isFinalNode): ignore blank nodes. + 2005-09-13 Stepan Kasal <kasal@ucw.cz> * xml2po.pc.in: Add datarootdir variable, for compatibility 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: |