From bb2491bf25f56ca650a8e6f962e01ca0cf4e9d6d Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Mon, 7 Jul 2003 10:57:11 +0000 Subject: [PATCH] 2003-07-07 Tim Waugh * src/plugins/WriteGedcom.py: Fix GEDCOM export. Fixed date construction logic to handle datestrs. svn: r1835 --- gramps2/ChangeLog | 3 ++- gramps2/src/plugins/WriteGedcom.py | 9 ++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 2f3c3ddcc..ea9be13e1 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,5 +1,6 @@ 2003-07-07 Tim Waugh - * src/plugins/WriteGedcom.py: Fix GEDCOM export. + * src/plugins/WriteGedcom.py: Fix GEDCOM export. Fixed date + construction logic to handle datestrs. 2003-07-06 Don Allingham * gramps.sh.in: Don't override an existing PYTHONPATH environment diff --git a/gramps2/src/plugins/WriteGedcom.py b/gramps2/src/plugins/WriteGedcom.py index 1fe8681e0..4850f9e8b 100644 --- a/gramps2/src/plugins/WriteGedcom.py +++ b/gramps2/src/plugins/WriteGedcom.py @@ -1017,11 +1017,10 @@ class GedcomWriter: def print_date(self,prefix,date): start = date.get_start_date() - if date.isEmpty(): - val = date.getText() - if val: - self.writeln("%s %s" % (prefix,self.cnvtxt(val))) - else: + val = date.getText() + if val: + self.writeln("%s %s" % (prefix,self.cnvtxt(val))) + elif not date.isEmpty (): if date.isRange(): val = "FROM %s TO %s" % (make_date(start), make_date(date.get_stop_date()))