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

svn: r16240
This commit is contained in:
Doug Blank 2010-11-30 14:31:16 +00:00
parent 7244448c51
commit 38a6412aa5

View File

@ -328,6 +328,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: