7398: Gedcom import deletes first char of notes

This commit is contained in:
Paul Franklin 2014-06-11 10:06:53 -07:00
parent 02b8ec013f
commit 12e7019af9

View File

@ -757,9 +757,9 @@ class Lexer(object):
line = line.split('@', 2) line = line.split('@', 2)
# line is now [None, alphanum+pointer_string, rest] # line is now [None, alphanum+pointer_string, rest]
tag = '@' + line[1] + '@' tag = '@' + line[1] + '@'
line_value = line[2] line_value = line[2].lstrip()
## Ignore meaningless @IDENT@ on CONT or CONC line ## 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 if (line_value.lstrip().startswith("CONT ") or
line_value.lstrip().startswith("CONC ")): line_value.lstrip().startswith("CONC ")):
line = line_value.lstrip().partition(' ') line = line_value.lstrip().partition(' ')