4427: GEDCOM export: non-standard end of line characters not output properly
svn: r16240
This commit is contained in:
parent
7244448c51
commit
38a6412aa5
@ -328,6 +328,8 @@ class GedcomWriter(UpdateCallback):
|
|||||||
assert(token)
|
assert(token)
|
||||||
if textlines:
|
if textlines:
|
||||||
# break the line into multiple lines if a newline is found
|
# 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')
|
textlist = textlines.split('\n')
|
||||||
token_level = level
|
token_level = level
|
||||||
for text in textlist:
|
for text in textlist:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user