Fix Gedcom export for incorrect escaping with @#DFRENCH R@
Fixes #10833
This commit is contained in:
parent
e926934a49
commit
c660ed1728
@ -281,7 +281,8 @@ class GedcomWriter(UpdateCallback):
|
|||||||
textlines = textlines.replace('\n\r', '\n')
|
textlines = textlines.replace('\n\r', '\n')
|
||||||
textlines = textlines.replace('\r', '\n')
|
textlines = textlines.replace('\r', '\n')
|
||||||
# Need to double '@' See Gedcom 5.5 spec 'any_char'
|
# 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('@', '@@')
|
textlines = textlines.replace('@', '@@')
|
||||||
textlist = textlines.split('\n')
|
textlist = textlines.split('\n')
|
||||||
token_level = level
|
token_level = level
|
||||||
|
Loading…
Reference in New Issue
Block a user