

def split_paragraphs(text):
    '\n    Split a string into paragraphs (one or more lines delimited by an empty line).\n\n    :param text: The text to split into paragraphs (a string).\n    :returns: A list of strings.\n    '
    paragraphs = []
    for chunk in text.split('\n\n'):
        chunk = trim_empty_lines(chunk)
        if (chunk and (not chunk.isspace())):
            paragraphs.append(chunk)
    return paragraphs

dataset/ETHPy150Open xolox/python-humanfriendly/humanfriendly/text.py split_paragraphs/original