diff --git a/src/plugins/WriteGedcom.py b/src/plugins/WriteGedcom.py index 93dedee3c..4e6ed586e 100644 --- a/src/plugins/WriteGedcom.py +++ b/src/plugins/WriteGedcom.py @@ -1144,6 +1144,7 @@ class GedcomWriter: else: self.writeln("") if ref.getText(): + ref_text = ref.getText() self.write_long_text("TEXT",level+1,self.cnvtxt(ref_text)) if ref.getComments():