summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-08-18 00:03:36 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2018-08-18 00:12:19 +0200
commit5ee5ccafb6cda327f302090779545590045ed611 (patch)
tree2ee544fa81b94a0a8b8c07231bdc564f132eea65
parentb9f520fa056b86daac9375b7ac584a75ab966cfd (diff)
downloadgobject-introspection-5ee5ccafb6cda327f302090779545590045ed611.tar.gz
docwriter: revert some output changes to make the tests pass
This reverts a small part of 19c03a46b1 to make tests pass again. The test error weren't noticed because a new Python dependency was missing, leading to those tests getting skipped.
-rw-r--r--giscanner/docwriter.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/giscanner/docwriter.py b/giscanner/docwriter.py
index 4a8b94cc..a29ba374 100644
--- a/giscanner/docwriter.py
+++ b/giscanner/docwriter.py
@@ -249,9 +249,12 @@ class DocFormatter(object):
if doc is None:
return ''
- result = '<p>'
- result += self.format_inline(node, doc)
- result += '</p>'
+ result = ''
+ for para in doc.split('\n\n'):
+ result += ' <p>'
+ result += self.format_inline(node, para)
+ result += '</p>'
+
return result
def _resolve_type(self, ident):