[TxMt] line breaks

Jonathan Chaffer jchaffer at structureinteractive.com
Wed Apr 20 15:39:31 UTC 2005


On Apr 20, 2005, at 11:30 AM, Vaska.Txt wrote:

> Certainly, this might an odd request, but is there some way to delete 
> line breaks (\n) in a text document?  Or, only when there are two in a 
> row (double spacing)?  I'm trying to clean up some large files and it 
> would be easy if I could plunk our large sections and take out the 
> double returns.

Sure! Search for \n\n and replace with \n. You'll need to have the 
"regular expression" box checked in the search dialog.

If you want to replace a chunk of many returns with one (instead of 
just two to one), search for \n\n+ instead.
--

Jonathan Chaffer
Applications Developer, structure:interactive
(616) 364-7423    http://www.structureinteractive.com/





More information about the textmate mailing list