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

Fixes #10833
This commit is contained in:
prculley authored and Nick Hall committed 2018-11-20 18:17:05 +00:00
1 parent e926934a49
commit c660ed1728
1 file changed
+2 -1
+2 -1
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