

def run(self, parent, blocks):
    sibling = self.lastChild(parent)
    block = blocks.pop(0)
    theRest = ''
    if (sibling and (sibling.tag == 'pre') and len(sibling) and (sibling[0].tag == 'code')):
        code = sibling[0]
        (block, theRest) = self.detab(block)
        code.text = util.AtomicString(('%s\n%s\n' % (code.text, block.rstrip())))
    else:
        pre = util.etree.SubElement(parent, 'pre')
        code = util.etree.SubElement(pre, 'code')
        (block, theRest) = self.detab(block)
        code.text = util.AtomicString(('%s\n' % block.rstrip()))
    if parent:
        blocks.insert(0, theRest)

dataset/ETHPy150Open darcyliu/storyboard/markdown/blockprocessors.py CodeBlockProcessor.run/VarMisuse@177/213 `theRest`->`parent`