import re


def get_indentation(keyword, search_str):
    """
    In a multi-line string with new line characters, find the indentation of a
    search string. Currently assumes that spaces are used for indentation and
    the search string directly follows the indent.

    Args:
        keyword (string): The keyword to search for
        search_str (string): String to search

    Returns:
        string: The indent
    """
    regex_variable = re.compile(r"\n( *)" + keyword)
    match = re.search(regex_variable, search_str)
    if match:
        return match.group(1)
    return ""