|
From: | Bernardo Bacic |
Subject: | Re: Requested function: just-one-empty-line() |
Date: | Mon, 06 Oct 2008 22:15:43 +1100 |
User-agent: | Thunderbird 2.0.0.17 (X11/20080914) |
I'm looking for a function just-one-empty-line(), or empty-lines() for the multi-line-variant, that does kind of what just-one-space() does but instead works on empty lines. Any suggestions? Example: pre;\n \n \n post; is converted to pre;\n \n post;
a regexp search (for ^J\{2,\}) and replace comes to mind ...
[Prev in Thread] | Current Thread | [Next in Thread] |