def split_paragraphs(text): paragraphs = text.split("\n") return [p.strip() for p in paragraphs if p.strip() != ""]