From 3451ed3e5e7a80b0f51fcfb6276d9c4d4a4be18c Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Thu, 25 Jan 2007 04:29:39 +0000 Subject: [PATCH] * src/docgen/RTFDoc.py: Properly escape "\n" characters svn: r7978 --- ChangeLog | 1 + src/docgen/RTFDoc.py | 1 + 2 files changed, 2 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3428ec1ad..88fb63b13 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,7 @@ * src/docgen/OpenOfficeDoc.py: Add "open with" option for book reports * src/plugins/BookReport.py: Add "open with" option for book reports * src/PluginUtils/_PluginMgr.py: Add "open with" option for book reports + * src/docgen/RTFDoc.py: Properly escape "\n" characters 2007-01-24 Douglas Blank * src/plugins/Calendar.py: 0000871: Holidays do not work in Windows diff --git a/src/docgen/RTFDoc.py b/src/docgen/RTFDoc.py index bb2f7e518..b914731ca 100644 --- a/src/docgen/RTFDoc.py +++ b/src/docgen/RTFDoc.py @@ -410,6 +410,7 @@ class RTFDoc(BaseDoc.BaseDoc): # #-------------------------------------------------------------------- def write_text(self,text,mark=None): + text = text.replace('\n','\n\\par ') if self.opened == 0: self.opened = 1 self.text = self.text + '{%s ' % self.font_type