def get_paragraphs(lines):
    """
    Yield a list of paragraphs defined as lines separated by blank lines.

    Each paragraph is returned as a list of lines.
    """
    group = []
    for line in lines:
        if line.strip() == '':
            if group:
                yield group
            group = []
        else:
            group.append(line)
    if group:
        yield group
