def last_blank(src):
    """Determine if the input source ends in a blank.

    A blank is either a newline or a line consisting of whitespace.

    Parameters
    ----------
    src : string
      A single or multiline string.
    """
    if not src:
        return False
    ll = src.splitlines()[-1]
    return ll == '' or ll.isspace()
