def indent(s, depth):
    """
    Indent a string of text with *depth* additional spaces on each line.
    """
    spaces = ' ' * depth
    interline_separator = '\n' + spaces
    return spaces + interline_separator.join(s.split('\n'))
