[TxMt] removing line breaks

Andrew Dupont andrew at andrewdupont.net
Wed May 31 04:30:56 UTC 2006


You can set up a command to do this.

sed -e ':a' -e '$!N;s/\n/ /;ta' -e 'P;D'

Save: Nothing
Input: Selected Text (or) Document
Output: Replace Selected Text

(No, I have no idea what most of the stuff in that command does.  I  
adapted it from a list of sed one-liners I found.)

Cheers,
Andrew


On May 30, 2006, at 11:24 PM, nachodog at mac.com wrote:

> I am trying to remove line breaks (is this the same as a hard  
> paragraph return?) from a selection.  In bbedit, I go to edit >  
> remove line breaks.  I can't find anything like this in Textmate—  
> could someone point out  the obvious?
>
> Thanks,
> Steve
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate




More information about the textmate mailing list