* src/ReadGedcom.py: handle attributes if value is on the same line as the

keyword


svn: r5155
This commit is contained in:
Don Allingham 2005-08-31 14:45:17 +00:00
parent ea8948dbfa
commit 941418dffe
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-08-31 Don Allingham <don@gramps-project.org>
* src/ReadGedcom.py: handle attributes if value is on the same line as the
keyword
2005-08-31 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/ReportUtils.py (insert_images): Warn about non existing files

View File

@ -70,6 +70,12 @@
1 EDUC
2 DATE BET. 1979 - 1984
2 PLAC UC Berkeley
1 SSN 123-456-7890
1 CAST cast keyword
1 DSCR dscr keyword
1 IDNO idno keyword
1 NATI nati keyword
1 NCHI nchi keyword
1 _DEG
2 DATE 1984
2 PLAC B.S.E.E.

View File

@ -1133,7 +1133,7 @@ class GedcomParser:
elif self.gedattr.has_key(n):
attr = RelLib.Attribute()
attr.set_type(self.gedattr[n])
attr.set_value(event.get_description())
attr.set_value(event.get_description() + matches[2])
self.person.add_attribute(attr)
self.parse_person_attr(attr,2)
continue