svn: r2522
This commit is contained in:
Don Allingham 2003-12-14 23:26:33 +00:00
parent 5e9a9d1266
commit e5fe097315
2 changed files with 4 additions and 4 deletions

View File

@ -227,16 +227,16 @@ class AbiWordDoc(BaseDoc.BaseDoc):
def write_note(self,text,format,style_name): def write_note(self,text,format,style_name):
if format == 1: if format == 1:
self.start_paragraph(style_name) self.start_paragraph(style_name)
self.f.write('<c props="font-family:Courier">')
self.write_text(text) self.write_text(text)
self.f.write('</c>')
self.end_paragraph() self.end_paragraph()
elif format == 0: elif format == 0:
for line in text.split('\n\n'): for line in text.split('\n\n'):
self.start_paragraph(style_name) self.start_paragraph(style_name)
self.f.write('<c props="font-family:Courier">')
line = line.replace('\n',' ') line = line.replace('\n',' ')
line = string.join(string.split(line)) line = string.join(string.split(line))
self.write_text(line) self.write_text(line)
self.f.write('</c>')
self.end_paragraph() self.end_paragraph()
def write_text(self,text): def write_text(self,text):

View File

@ -686,16 +686,16 @@ class OpenOfficeDoc(BaseDoc.BaseDoc):
text = text.replace('&lt;/super&gt;','</text:span>') text = text.replace('&lt;/super&gt;','</text:span>')
self.start_paragraph(style_name) self.start_paragraph(style_name)
self.f.write('<text:span text:style-name="GRAMPS-preformat">')
self.f.write(text) self.f.write(text)
self.f.write('</text:span>')
self.end_paragraph() self.end_paragraph()
elif format == 0: elif format == 0:
for line in text.split('\n\n'): for line in text.split('\n\n'):
self.start_paragraph(style_name) self.start_paragraph(style_name)
self.f.write('<text:span test:style-name="GRAMPS-preformat">')
line = line.replace('\n',' ') line = line.replace('\n',' ')
line = string.join(string.split(line)) line = string.join(string.split(line))
self.write_text(line) self.write_text(line)
self.f.write('</text:span>')
self.end_paragraph() self.end_paragraph()
def write_text(self,text): def write_text(self,text):