ODFDoc : Styled notes : Bad format, font, indents and spacing.

svn: r13113
This commit is contained in:
Serge Noiraud 2009-08-23 22:00:34 +00:00
parent a7c69b41e6
commit 3d13046fa0

View File

@ -1232,14 +1232,14 @@ class ODFDoc(BaseDoc, TextDoc, DrawDoc):
m.group(1), m.group(1),
m.group(2)]) m.group(2)])
start = m.end() start = m.end()
self.cntnt.write('<text:p >')
linenb = 1 linenb = 1
self.start_paragraph(style_name)
for line in markuptext.split('\n'): for line in markuptext.split('\n'):
if ( linenb > 1 ): if ( linenb > 1 ):
self.cntnt.write('<text:line-break/>') self.cntnt.write('<text:line-break/>')
self.cntnt.write(line) self.cntnt.write(line)
linenb += 1 linenb += 1
self.cntnt.write('</text:p>') self.end_paragraph()
def write_text(self, text, mark=None): def write_text(self, text, mark=None):
""" """