diff --git a/src/docgen/OpenDrawDoc.py b/src/docgen/OpenDrawDoc.py index bb6853d18..1164ba080 100644 --- a/src/docgen/OpenDrawDoc.py +++ b/src/docgen/OpenDrawDoc.py @@ -108,6 +108,8 @@ class OpenDrawDoc(DrawDoc.DrawDoc): self.f.write('style:font-pitch="variable"/>\n') self.f.write('\n') self.f.write('\n') + self.f.write('') + self.f.write('') self.f.write('\n') self.f.write('\n') @@ -366,8 +368,13 @@ class OpenDrawDoc(DrawDoc.DrawDoc): self.f.write('\n') def write_text(self,text): - text = string.replace(text,'\t','') - text = string.replace(text,'\n','') + text = text.replace('&','&'); # Must be first + text = text.replace('\t','') + text = text.replace('\n','') + text = text.replace('<','<'); + text = text.replace('>','>'); + text = text.replace('<super>','') + text = text.replace('</super>','') self.f.write(text) def _write_manifest(self): diff --git a/src/docgen/OpenOfficeDoc.py b/src/docgen/OpenOfficeDoc.py index 79edd86a6..e279291ba 100644 --- a/src/docgen/OpenOfficeDoc.py +++ b/src/docgen/OpenOfficeDoc.py @@ -113,6 +113,10 @@ class OpenOfficeDoc(TextDoc.TextDoc): self.f.write('style:font-pitch="variable"/>\n') self.f.write('\n') self.f.write('\n') + self.f.write('') + self.f.write('') + self.f.write('\n') + for style_name in self.style_list.keys(): style = self.style_list[style_name] self.f.write('') + text = text.replace('</super>','') self.f.write(text) def _write_manifest(self):