Make sure Gedcom ADDR token if location is populated. Bug #2216
svn: r10832
This commit is contained in:
parent
31ab1294c4
commit
656b4da5ab
@ -1428,9 +1428,8 @@ class GedcomWriter(BasicUtils.UpdateCallback):
|
||||
# be written out in the event detail.
|
||||
# http://homepages.rootsweb.com/~pmcbride/gedcom/55gcch2.htm#EVENT_DETAIL
|
||||
location = place.get_main_location()
|
||||
if location:
|
||||
if location.get_street():
|
||||
self.__writeln(level, "ADDR", location.get_street())
|
||||
if location and not location.is_empty():
|
||||
self.__writeln(level, "ADDR", location.get_street())
|
||||
if location.get_city():
|
||||
self.__writeln(level + 1, 'CITY', location.get_city())
|
||||
if location.get_state():
|
||||
|
Loading…
Reference in New Issue
Block a user