Пример #1
0
 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()
Пример #2
0
 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()
Пример #3
0
 def visit_doctest_block(self, node):
     self.body.append(doctest_to_latex(node[0].astext()))
     raise SkipNode()
Пример #4
0
 def visit_doctest_block(self, node):
     self.body.append(doctest_to_latex(node[0].astext()))
     raise SkipNode()