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:
parent
a887ae1e2d
commit
841ab24a82
@ -346,7 +346,13 @@ class Reader:
|
||||
|
||||
def __fix_token_conc(self, data):
|
||||
line = self.current_list[0]
|
||||
new_value = line[2] + data[2]
|
||||
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])
|
||||
|
||||
def __readahead(self):
|
||||
|
Loading…
Reference in New Issue
Block a user