4427: GEDCOM export: non-standard end of line characters not output properly

svn: r16239
This commit is contained in:
Doug Blank 2010-11-30 14:30:48 +00:00
parent bb83e894ea
commit 88bf95cf57

View File

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