diff --git a/data/tests/imp_test_FTM_CONC.difs b/data/tests/imp_test_FTM_CONC.difs deleted file mode 100644 index ebe47cf5f..000000000 --- a/data/tests/imp_test_FTM_CONC.difs +++ /dev/null @@ -1,17 +0,0 @@ -Mismatch on file: imp_test_FTM_CONC.ged -Source: S0029 handle=0000000500000005 - Diff on: Source, pubinfo - 73: Name: Ancestry.com Operations, Inc.; Location: Provo, UT, USA; Date:2009; - 74: Name: Ancestry.com Operations, Inc.; Location: Provo, UT, USA; Date: 2009; -Citation: C0000 handle=0000000600000006 - Diff on: Citation, page - 102: Year: 1850; Census Place: District 14, Cape Girardeau, Missouri; Roll:M432_394; Page: 435B; Image: 248 - 103: Year: 1850; Census Place: District 14, Cape Girardeau, Missouri; Roll: M432_394; Page: 435B; Image: 248 -Note: N0000 handle=0000000200000002 - Diff on: Note, text, string - 54: The FTM way to do a CONC line with space at end --><-- - 55: The FTM way to do a CONC line with space at end --> <-- -Note: N0002 handle=0000000400000004 - Diff on: Note, text, string - 136: Be nice if we supported FTM way to do CONC sousers would not have to spell check and edit their whole database for these kind of errors. - 137: Be nice if we supported FTM way to do CONC so users would not have to spell check and edit their whole database for these kind of errors. diff --git a/gramps/plugins/lib/libgedcom.py b/gramps/plugins/lib/libgedcom.py index ae96adf9d..2bc6007aa 100755 --- a/gramps/plugins/lib/libgedcom.py +++ b/gramps/plugins/lib/libgedcom.py @@ -783,7 +783,10 @@ class Lexer: # 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 let's + # leave them in place. + data = data[:2] + (data[2].lstrip(),) + data[3:] self.current_list.insert(0, data) def clean_up(self):