def indent(data: str, spaces: int) -> str:
    """
    Indent every line in 'data' by 'spaces'
    """
    result = []

    for line in data.splitlines():
        result.append(" " * spaces + line)

    return "\n".join(result)