diff options
author | Colin Walters <walters@verbum.org> | 2011-08-12 06:01:56 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2011-08-13 04:17:00 -0400 |
commit | d437ae4ae95bada1305c6b720bb7eb207c7122bf (patch) | |
tree | 22af2fab24b0fffdf70bff272525ae61f2cd2693 /giscanner/girparser.py | |
parent | c4c1de663f0c42875d5dd029d910d6c37e90ec8a (diff) | |
download | gobject-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.py | 3 |
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 |