Emacs - convert whitespace to single space?
Hi,
I'm looking for a little elisp (EMACS) function that will convert whitespace (preferably also line breaks) from the point until the next text character into one space. I'm dealing with a query log file that looks like: Code:
SELECT Ideally, I'd like to just map the function to an F key, to get something like: Code:
SELECT{} Code:
SELECT usr_lang Thanks, Jason |
you may try something like regex replace, i.e.
M-cntl-% (that's alt-cntl-shift-5) the for the query, use: [ cntl-q-j]* (that's bracket, space, cntl-q-j,bracket,star) and for the reaplce, use a single space. .. works moderatly well. |
All times are GMT -5. The time now is 09:55 PM. |