Page 1 of 1

removing single linebreaks, leaving double

Posted: Tue Jun 06, 2006 5:09 am
by ilovetextpad
i need help removing any single linebreaks while leaving all double breaks alone. say i have a line like this:

annie had\n
a bump on\n
her head\n
\n

and want it to look something like this:

annie had a bump on her head\n

Posted: Tue Jun 06, 2006 5:44 am
by ilovetextpad
well i sort of got it working, though its certainly not pretty.
replace \n with bloomph
replace bloomphbloomph with \n
replace bloomph with <space>

Posted: Tue Jun 06, 2006 6:06 am
by MudGuard
Have you tried Edit - Reformat

(maybe combined with switching on word wrap)

Posted: Tue Jun 06, 2006 6:20 am
by ilovetextpad
yeah reformat ended up working a little bit better. :oops: thanks.