7398: Gedcom import deletes first char of notes

This commit is contained in:
Paul Franklin 2014-06-11 10:05:08 -07:00
parent 97a1419281
commit 16cbe024ec

View File

@ -735,9 +735,9 @@ class Lexer(object):
line = line.split('@', 2)
# line is now [None, alphanum+pointer_string, rest]
tag = '@' + line[1] + '@'
line_value = line[2]
line_value = line[2].lstrip()
## Ignore meaningless @IDENT@ on CONT or CONC line
## as detailed at http://www.tamurajones.net/IdentCONT.xhtml
## as noted at http://www.tamurajones.net/IdentCONT.xhtml
if (line_value.lstrip().startswith("CONT ") or
line_value.lstrip().startswith("CONC ")):
line = line_value.lstrip().partition(' ')