def reindent_lines(new_leader, source):
    return new_leader + ('\n' + new_leader).join(source.split('\n'))
Process placeholders in Element.text or Element.tail
dataset/ETHPy150Open Unidata/siphon/siphon/cdmr/coveragedataset.py/reindent_lines--crossover with--dataset/ETHPy150Open dragondjf/QMarkdowner/markdown/treeprocessors.py/InlineProcessor.__processElementText