From a584c5dfedc6a0ff9439bd12494cc0f4d44b282d Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 10 Sep 2013 16:49:29 +0000 Subject: [PATCH] Ignore meaningless @IDENT@ on CONT or CONC line as detailed at http://www.tamurajones.net/IdentCONT.xhtml svn: r23079 --- gramps/plugins/lib/libgedcom.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gramps/plugins/lib/libgedcom.py b/gramps/plugins/lib/libgedcom.py index 0d5712bf2..18cdcb2b8 100644 --- a/gramps/plugins/lib/libgedcom.py +++ b/gramps/plugins/lib/libgedcom.py @@ -752,6 +752,13 @@ class Lexer(object): # line is now [None, alphanum+pointer_string, rest] tag = '@' + line[1] + '@' line_value = line[2] + ## Ignore meaningless @IDENT@ on CONT or CONC line + ## as detailed at http://www.tamurajones.net/IdentCONT.xhtml + if (line_value.lstrip().startswith("CONT ") or + line_value.lstrip().startswith("CONC ")): + line = line_value.lstrip().partition(' ') + tag = line[0] + line_value = line[2] else: line = line.partition(' ') tag = line[0]