* src/docgen/RTFDoc.py: Properly escape "\n" characters

svn: r7978
This commit is contained in:
Brian Matherly 2007-01-25 04:29:39 +00:00
parent 0bc7ae7731
commit 3451ed3e5e
2 changed files with 2 additions and 0 deletions

View File

@ -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 <dblank@cs.brynmawr.edu>
* src/plugins/Calendar.py: 0000871: Holidays do not work in Windows

View File

@ -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