[TxMt] Re: removing blank lines in list
gerti-textmate at bitart.com
Sat Jun 22 19:18:17 UTC 2013
- Check "Regular Expression"
- Find: \n+
- Replace: \n
- "Replace All"
Or if you can't remember, copy 2 linefeeds into the Find field, 1 linefeed into the Replace field, and do "Replace All" until no more matches are found.
PS: if there also is random space in the 'blank' lines, replace the "Find" expression with \n\s*\n
On Jun 22, 2013, at 1: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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the textmate