Exemplo n.º 1
0
 def visit_doctest_block(self, node):
     pysrc = node[0].astext()
     if node.get('codeblock'):
         self.body.append(HTMLDoctestColorizer().colorize_codeblock(pysrc))
     else:
         self.body.append(doctest_to_html(pysrc))
     raise SkipNode()
Exemplo n.º 2
0
 def visit_doctest_block(self, node):
     pysrc = node[0].astext()
     if node.get('codeblock'):
         self.body.append(HTMLDoctestColorizer().colorize_codeblock(pysrc))
     else:
         self.body.append(doctest_to_html(pysrc))
     raise SkipNode()