sgf comments

This commit is contained in:
Sander Land committed 2020-08-02 12:30:17 +02:00
1 parent 1da48bada7
commit dc420f366f
2 files changed
+5 -2

No files matched your search

+3 -2
View File
@@ -1,7 +1,8 @@
# Contributing
If you are a new contributor, please first discuss the change you wish to make via
an issue, reddit or discord before making a change.
If you are a new contributor wanting to make a larger contribution,
please first discuss the change you wish to make via
an issue, reddit or discord before making a pull request.
## Python contributions
+2
View File
@@ -193,6 +193,8 @@ class GameNode(SGFNode):
text += "\n" + i18n._("Info:AI thoughts").format(thoughts=self.ai_thoughts)
else:
text = i18n._("No analysis available") if sgf else i18n._("Analyzing move...")
if "C" in self.properties:
text += "\n[u]SGF Comments:[/u]\n" + "\n".join(self.properties["C"])
return text
@property