commands

use CTRL+E to run commands

textfilter

run commands on selected text

unwrap text

uses a perl one-liner. CTRL+A before running

textfilter perl -00 -lpe 's/\n/ /g, s/ +/ /g'