update
svn: r2522
This commit is contained in:
parent
5e9a9d1266
commit
e5fe097315
@ -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):
|
||||||
|
@ -686,16 +686,16 @@ class OpenOfficeDoc(BaseDoc.BaseDoc):
|
|||||||
text = text.replace('</super>','</text:span>')
|
text = text.replace('</super>','</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):
|
||||||
|
Loading…
Reference in New Issue
Block a user