From a72e6f158c1af9e0c8686db7d18d85e64f598ee9 Mon Sep 17 00:00:00 2001 From: prculley Date: Fri, 8 Jul 2016 12:02:34 -0500 Subject: [PATCH] Bug 9479 Gedcom import loses spaces in text fields from FTM --- gramps/plugins/lib/libgedcom.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/lib/libgedcom.py b/gramps/plugins/lib/libgedcom.py index 6a9679686..ab8edafee 100755 --- a/gramps/plugins/lib/libgedcom.py +++ b/gramps/plugins/lib/libgedcom.py @@ -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):