Flatten text and normalize whitespace — locally.
“Keep paragraphs” turns blank lines into a paragraph break.