def visit_doctest_block(self, node): pysrc = node[0].astext() if node.get('codeblock'): self.body.append(LaTeXDoctestColorizer().colorize_codeblock(pysrc)) else: self.body.append(doctest_to_latex(pysrc)) raise SkipNode()
def visit_doctest_block(self, node): self.body.append(doctest_to_latex(node[0].astext())) raise SkipNode()