def text_first_line(target, strip=False):
    """
    Return the first line of text; if `strip` is True, return all but the first
    line of text.
    """
    first_line, _, rest = target.partition("\n")

    if strip:
        return rest
    else:
        return first_line