We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7096f1 commit 09e14b6Copy full SHA for 09e14b6
nodes.py
@@ -645,7 +645,9 @@ class SimplesectNode(Node):
645
def to_asciidoc(self, **kwargs):
646
previous_node = self.previous_node()
647
next_node = self.next_node()
648
- if self.node.get("kind") == "see":
+ kind = self.node.get("kind")
649
+
650
+ if kind == "see":
651
output = []
652
if not (
653
previous_node
@@ -662,10 +664,10 @@ def to_asciidoc(self, **kwargs):
662
664
output.append("\n--")
663
665
return "".join(output)
666
- if self.node.get("kind") == "return":
667
+ if kind == "return":
668
return f"--\n*Returns*\n\n{super().to_asciidoc(**kwargs)}\n--"
669
- if self.node.get("kind") == "note":
670
+ if kind == "note":
671
672
673
0 commit comments