def _text_indent(text, indent):
    # type: (str, str) -> str
    """
    indent a block of text
    :param str text: text to indent
    :param str indent: string to indent with
    :return: the rendered result (with no trailing indent)
    """
    lines = [line.strip() for line in text.strip().split('\n')]
    return indent + indent.join(lines)