diff --git a/src/plugins/docgen/ODFDoc.py b/src/plugins/docgen/ODFDoc.py index 5783394cb..8ebf9a8d3 100644 --- a/src/plugins/docgen/ODFDoc.py +++ b/src/plugins/docgen/ODFDoc.py @@ -1232,14 +1232,14 @@ class ODFDoc(BaseDoc, TextDoc, DrawDoc): m.group(1), m.group(2)]) start = m.end() - self.cntnt.write('') linenb = 1 + self.start_paragraph(style_name) for line in markuptext.split('\n'): if ( linenb > 1 ): self.cntnt.write('') self.cntnt.write(line) linenb += 1 - self.cntnt.write('') + self.end_paragraph() def write_text(self, text, mark=None): """