From d768deae74f06c9ee6947fe547dbd1c59d07ad09 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 31 Jul 2005 04:22:43 +0000 Subject: [PATCH] * src/docgen/OpenOfficeDoc.org: remove ^L and ^Z from output svn: r4983 --- gramps2/ChangeLog | 3 +++ gramps2/src/docgen/OpenOfficeDoc.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 1e2e2c147..7b1b56076 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2005-07-30 Don Allingham + * src/docgen/OpenOfficeDoc.org: remove ^L and ^Z from output + 2005-07-29 Don Allingham * src/GrampsBSDDB.py: issue complete redraw on name grouping change * src/Utils.py: use intermediate variable diff --git a/gramps2/src/docgen/OpenOfficeDoc.py b/gramps2/src/docgen/OpenOfficeDoc.py index 68b75967c..9f34d23ad 100644 --- a/gramps2/src/docgen/OpenOfficeDoc.py +++ b/gramps2/src/docgen/OpenOfficeDoc.py @@ -707,6 +707,8 @@ class OpenOfficeDoc(BaseDoc.BaseDoc): text = text.replace('&','&') # Must be first text = text.replace('<','<') text = text.replace('>','>') + text = text.replace('\x1a','') + text = text.replace('\x0c','') text = text.replace('\n','') text = text.replace('<super>', '')