Bug 9479 Gedcom import loses spaces in text fields from FTM

This commit is contained in:
prculley 2016-07-08 12:02:34 -05:00
parent 2ac3935092
commit a72e6f158c

View File

@ -782,7 +782,10 @@ class Lexer(object):
# There will normally only be one space between tag and
# line_value, but in case there is more then one, remove extra
# spaces after CONC/CONT processing
data = data[:2] + (data[2].strip(),) + data[3:]
# Also, Gedcom spec says there should be no spaces at end of
# line, however some programs put them there (FTM), so lets
# leave them in place.
data = data[:2] + (data[2].lstrip(),) + data[3:]
self.current_list.insert(0, data)
def clean_up(self):