From 0a0a1035f9f4c4a985069f2a914851e630e84b50 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Fontaine?= Date: Mon, 7 Jan 2019 10:20:03 +0100 Subject: [PATCH] Fix Notes: set the text attribute before adding to Tree --- getmyancestors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/getmyancestors.py b/getmyancestors.py index 244ac79..092e8dc 100755 --- a/getmyancestors.py +++ b/getmyancestors.py @@ -250,11 +250,11 @@ class Note: else: Note.counter += 1 self.num = Note.counter + self.text = text.strip() + if tree: tree.notes.append(self) - self.text = text.strip() - def print(self, file=sys.stdout): file.write(cont('0 @N' + str(self.num) + '@ NOTE ' + self.text) + '\n') -- 2.52.0