Clean up pasted text by stripping blank rows before further processing.
Results
Enter text to see live output.
Yes. Any line without meaningful characters is removed.
No. It only removes blank lines and keeps non-empty text as is.
Yes, but confirm whether your file semantics depend on blank-line grouping.