diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-02-03 13:17:59 -0200 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-02-03 13:17:59 -0200 |
commit | ba4489691847ed1cff2f33f1bfa9aeda85af2a6b (patch) | |
tree | 505024a8b16a04ce266c90a3d7777f735e0ba966 /sx.el | |
parent | a2d526c4b12ffa1cece78be7e6bfedf0b2b60576 (diff) |
New function sx--squash-whitespace
Diffstat (limited to 'sx.el')
-rw-r--r-- | sx.el | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -331,6 +331,10 @@ GET-FUNC and performs the actual comparison." (funcall ,get-func a) (funcall ,get-func b)))) +(defun sx--squash-whitespace (string) + "Return STRING with consecutive whitespace squashed together." + (replace-regexp-in-string "[ \r\n]+" " " string)) + ;;; Printing request data (defvar sx--overlays nil |