[TxMt] Re: removing blank lines in list

Timothy Bates timothy.c.bates at gmail.com
Sat Jun 22 19:18:30 UTC 2013

Lines with nothing but blank space will match

\n *\n

just record a macro  where you find and replace that with \n

then play it in files you want to cleanse.

There are likely better solutions


On 22 Jun 2013, at 7:21 PM, Lewy <lewy at chena.fastmail.us> wrote:

> I often receive lists to publish. When they come in, there are blank lines between each item. Adding markup is easy. It _should_ be easy to remove the blank lines, but I'm a klutz with regex. Can someone suggest an easy way to bet rid of the blank lines.
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20130622/11290fb9/attachment.html>

More information about the textmate mailing list