def indent ( block , spaces ) : new_block = '' for line in block . split ( '\n' ) : new_block += spaces + line + '\n' return new_block
paragraph spacing code python
indents paragraphs of text for rst formatting
def indent(block, spaces):
    """ indents paragraphs of text for rst formatting """
    new_block = ''
    for line in block.split('\n'):
        new_block += spaces + line + '\n'
    return new_block