

def run(self, parent, blocks):
    block = blocks.pop(0)
    prelines = block[:self.match.start()].rstrip('\n')
    if prelines:
        self.parser.parseBlocks(parent, [prelines])
    hr = util.etree.SubElement(parent, 'hr')
    postlines = block[self.match.end():].lstrip('\n')
    if postlines:
        blocks.insert(0, postlines)

dataset/ETHPy150Open darcyliu/storyboard/markdown/blockprocessors.py HRProcessor.run/original