From 88bf95cf57d481fcccdf865caac8432e261c3bba Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 30 Nov 2010 14:30:48 +0000 Subject: [PATCH] 4427: GEDCOM export: non-standard end of line characters not output properly svn: r16239 --- src/plugins/export/ExportGedcom.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/export/ExportGedcom.py b/src/plugins/export/ExportGedcom.py index e3fb77109..f2f23d3a5 100644 --- a/src/plugins/export/ExportGedcom.py +++ b/src/plugins/export/ExportGedcom.py @@ -270,6 +270,8 @@ class GedcomWriter(UpdateCallback): assert(token) if textlines: # break the line into multiple lines if a newline is found + textlines = textlines.replace('\n\r', '\n') + textlines = textlines.replace('\r', '\n') textlist = textlines.split('\n') token_level = level for text in textlist: