GEDCOM parsing/writing fixes

svn: r552
This commit is contained in:
Don Allingham
2001-11-05 03:06:21 +00:00
parent 3a3cb5f1c9
commit b1343e463f
2 changed files with 16 additions and 384 deletions

View File

@@ -467,6 +467,9 @@ def write_person(g,person):
if private and addr.getPrivacy():
continue
g.write("1 RESI\n")
datestr = addr.getDateObj().getSaveDate()
if datestr != "":
g.write("2 DATE %s\n" % cnvtxt(datestr))
write_long_text(g,"ADDR",2,addr.getStreet())
if addr.getCity() != "":
g.write("3 CITY %s\n" % addr.getCity())