summaryrefslogtreecommitdiff
path: root/giscanner/girparser.py
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2011-08-12 06:01:56 -0400
committerColin Walters <walters@verbum.org>2011-08-13 04:17:00 -0400
commitd437ae4ae95bada1305c6b720bb7eb207c7122bf (patch)
tree22af2fab24b0fffdf70bff272525ae61f2cd2693 /giscanner/girparser.py
parentc4c1de663f0c42875d5dd029d910d6c37e90ec8a (diff)
downloadgobject-introspection-d437ae4ae95bada1305c6b720bb7eb207c7122bf.tar.gz
scanner: Don't throw away blank lines in the docs
For generating documentation, we actually want to preserve these. https://bugzilla.gnome.org/show_bug.cgi?id=656389
Diffstat (limited to 'giscanner/girparser.py')
-rw-r--r--giscanner/girparser.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/girparser.py b/giscanner/girparser.py
index 45a93ed6..51de1b15 100644
--- a/giscanner/girparser.py
+++ b/giscanner/girparser.py
@@ -199,7 +199,8 @@ class GIRParser(object):
return
doc = node.find(_corens('doc'))
if doc is not None:
- obj.doc = doc.text
+ if doc.text:
+ obj.doc = doc.text
version = node.attrib.get('version')
if version:
obj.version = version