Skip to content

Commit

Permalink
Fix GEDCOM export; don't include ADDR when address is missing
Browse files Browse the repository at this point in the history
Fixes #11825
  • Loading branch information
prculley committed Jul 25, 2020
1 parent 41f1e91 commit 75aabf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gramps/plugins/export/exportgedcom.py
Expand Up @@ -1553,7 +1553,7 @@ def __write_addr(self, level, addr):
@type addr: [a super-type of] LocationBase
"""
if addr.get_street() or addr.get_locality() or addr.get_city() or \
addr.get_state() or addr.get_postal_code or addr.get_country():
addr.get_state() or addr.get_postal_code() or addr.get_country():
self._writeln(level, 'ADDR', addr.get_street())
if addr.get_locality():
self._writeln(level + 1, 'CONT', addr.get_locality())
Expand Down

0 comments on commit 75aabf5

Please sign in to comment.