def indent(s, amount=2):
    """
    Indents a block of text (useful for debug purposes).
    Not intended for use in indenting table cells!
    """
    results = []
    for line in s.split('\n'):
        results.append(' ' * amount + line)
    return '\n'.join(results)
