diff --git a/src/docgen/AbiWord2Doc.py b/src/docgen/AbiWord2Doc.py index 57c0f2303..e99236991 100644 --- a/src/docgen/AbiWord2Doc.py +++ b/src/docgen/AbiWord2Doc.py @@ -227,16 +227,16 @@ class AbiWordDoc(BaseDoc.BaseDoc): def write_note(self,text,format,style_name): if format == 1: self.start_paragraph(style_name) + self.f.write('') self.write_text(text) + self.f.write('') self.end_paragraph() elif format == 0: for line in text.split('\n\n'): self.start_paragraph(style_name) - self.f.write('') line = line.replace('\n',' ') line = string.join(string.split(line)) self.write_text(line) - self.f.write('') self.end_paragraph() def write_text(self,text): diff --git a/src/docgen/OpenOfficeDoc.py b/src/docgen/OpenOfficeDoc.py index 33a65b090..a425ced71 100644 --- a/src/docgen/OpenOfficeDoc.py +++ b/src/docgen/OpenOfficeDoc.py @@ -686,16 +686,16 @@ class OpenOfficeDoc(BaseDoc.BaseDoc): text = text.replace('</super>','') self.start_paragraph(style_name) + self.f.write('') self.f.write(text) + self.f.write('') self.end_paragraph() elif format == 0: for line in text.split('\n\n'): self.start_paragraph(style_name) - self.f.write('') line = line.replace('\n',' ') line = string.join(string.split(line)) self.write_text(line) - self.f.write('') self.end_paragraph() def write_text(self,text):