Allow Gedcom lexer to pad with a space when joining CONC lines to empty NOTE lines. Bug #2100.

svn: r10634
This commit is contained in:
Gary Burton 2008-04-23 21:46:07 +00:00
parent a887ae1e2d
commit 841ab24a82

View File

@ -346,6 +346,12 @@ class Reader:
def __fix_token_conc(self, data):
line = self.current_list[0]
if len(line[2]) == 4:
# The previous line contains only a tag and no data so concat a
# space to separate the new line from the tag. This prevents the
# first letter of the new line being lost later.
new_value = line[2] + ' ' + data[2]
else:
new_value = line[2] + data[2]
self.current_list[0] = (line[0], line[1], new_value, line[3], line[4])