Fix Gedcom export for incorrect escaping with @#DFRENCH R@

Fixes #10833
This commit is contained in:
prculley 2018-10-07 15:34:25 -05:00 committed by Nick Hall
parent e926934a49
commit c660ed1728

View File

@ -281,7 +281,8 @@ class GedcomWriter(UpdateCallback):
textlines = textlines.replace('\n\r', '\n')
textlines = textlines.replace('\r', '\n')
# Need to double '@' See Gedcom 5.5 spec 'any_char'
if not textlines.startswith('@'): # avoid xrefs
# but avoid xrefs and escapes
if not textlines.startswith('@') and '@#' not in textlines:
textlines = textlines.replace('@', '@@')
textlist = textlines.split('\n')
token_level = level