def _fix_docstring_for_sphinx(docstr):
    """
    Remove 8-space indentation from lines of specified :samp:`{docstr}` string.
    """
    lines = docstr.split("\n")
    for i in range(len(lines)):
        if lines[i].find(" " * 8) == 0:
            lines[i] = lines[i][8:]
    return "\n".join(lines)