diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2010-01-17 01:04:26 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2010-01-17 01:04:26 -0500 |
commit | 6ae5bf9b676df24f417c4e29385d6b54376c3475 (patch) | |
tree | 6da35dc62dbf0033766c4750bd08ebb16c543d85 | |
parent | 2ea8de7737c4186557a0490a8bbb53bc9b6cd79e (diff) |
Don't add content node when the text is blank.
-rw-r--r-- | source/docbook.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/docbook.py b/source/docbook.py index 262262c..51c69ca 100644 --- a/source/docbook.py +++ b/source/docbook.py @@ -185,7 +185,7 @@ class DocBookConverter: if src.nodeType == node.NodeType.Content: # content node. content = src.content - if len(content) > 0: + if len(content.strip()) > 0: dest.appendContent(content) elif DocBookConverter.elemIgnored.has_key(src.name): |