From c660ed172886a6df00ed991d21de434ebf3286ec Mon Sep 17 00:00:00 2001 From: prculley Date: Sun, 7 Oct 2018 15:34:25 -0500 Subject: [PATCH] Fix Gedcom export for incorrect escaping with @#DFRENCH R@ Fixes #10833 --- gramps/plugins/export/exportgedcom.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/export/exportgedcom.py b/gramps/plugins/export/exportgedcom.py index b037c1cd3..e9eb39034 100644 --- a/gramps/plugins/export/exportgedcom.py +++ b/gramps/plugins/export/exportgedcom.py @@ -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