* src/plugins/ReadGedcom.py (parse_source): Stop TEXT messing

up the title; add ABBR to the note field (was ignored).


svn: r2435
This commit is contained in:
Alex Roitman 2003-12-03 19:22:52 +00:00
parent 692cca8a91
commit 72068ec2b5
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2003-12-03 Alex Roitman <shura@alex.neuro.umn.edu>
* src/plugins/ReadGedcom.py (parse_source): Stop TEXT messing
up the title; add ABBR to the note field (was ignored).
2003-12-02 Don Allingham <dallingham@users.sourceforge.net>
* src/PeopleView.py (PeopleView.clear_person_tabs): initialize
the model2page map with the default list, instead of clearing it.

View File

@ -469,11 +469,12 @@ class GedcomParser:
note = "%s\n%s %s%s" % (note,matches[1],matches[2],d)
else:
note = "%s %s%s" % (matches[1],matches[2],d)
title = matches[2] + d
title = string.replace(title,'\n',' ')
self.source.setTitle(title)
elif matches[1] == "ABBR":
pass
d = self.parse_continue_data(level+1)
if note:
note = "%s\n%s %s%s" % (note,matches[1],matches[2],d)
else:
note = "%s %s%s" % (matches[1],matches[2],d)
else:
if note:
note = "%s\n%s %s" % (note,matches[1],matches[2])