* src/docgen/OpenOfficeDoc.py (write_note): Implement function.

svn: r2514
This commit is contained in:
Alex Roitman
2003-12-13 05:59:35 +00:00
parent 570fd76a2f
commit 2819de10a2
4 changed files with 39 additions and 8 deletions

View File

@@ -17,6 +17,9 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# $Id$
"""
Provides a BaseDoc based interface to the AbiWord document format.
"""
@@ -223,10 +226,9 @@ class AbiWordDoc(BaseDoc.BaseDoc):
def write_note(self,text,format,style_name):
if format == 1:
for line in text.split('\n'):
self.start_paragraph(style_name)
self.write_text(line)
self.end_paragraph()
self.start_paragraph(style_name)
self.write_text(text)
self.end_paragraph()
elif format == 0:
for line in text.split('\n\n'):
self.start_paragraph(style_name)