Commits

Anonymous committed f6b1b02

Remove leftover code that does not work.

  • Participants
  • Parent commits 624359c

Comments (0)

Files changed (1)

sphinx/environment.py

             if len(node.children) == 1 and isinstance(node.children[0],
                                                       nodes.doctest_block):
                 node.replace_self(node.children[0])
-        for node in self.document.traverse(nodes.literal_block):
-            if not node.parent:
-                continue
-            idx = node.parent.index(node)
-            try:
-                while isinstance(node.parent[idx+1], nodes.literal_block):
-                    node.children[0] += '\n' + node.parent[idx+1].children[0]
-                    import pdb; pdb.set_trace()
-                    node.parent[idx+1].parent = None
-                    del node.parent[idx+1]
-            except IndexError:
-                continue
 
 
 class MyStandaloneReader(standalone.Reader):