projects
/
gamesguru
/
getmyancestors.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f27d69
)
Fix Notes: set the text attribute before adding to Tree
author
Benoît Fontaine
<benoit.fontaine@acft.fr>
Mon, 7 Jan 2019 09:20:03 +0000
(10:20 +0100)
committer
Benoît Fontaine
<benoit.fontaine@acft.fr>
Mon, 7 Jan 2019 09:20:03 +0000
(10:20 +0100)
getmyancestors.py
patch
|
blob
|
history
diff --git
a/getmyancestors.py
b/getmyancestors.py
index 244ac795d1ff09ecace699036a6a371c57748f68..092e8dc5d630d7b8bad8f17b94f0e11fa4e57125 100755
(executable)
--- 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')