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

svn: r10635
This commit is contained in:
Gary Burton 2008-04-23 21:47:06 +00:00
parent 3df385a447
commit e580d5b855

View File

@ -351,6 +351,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])