Tiny string-clean-whitespace simplification
* lisp/emacs-lisp/subr-x.el (string-clean-whitespace): Streamline by treating replacement string as being literal and having fixed case.
This commit is contained in:
parent
7e86d3bb9b
commit
27fab4b140
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ All sequences of whitespaces in STRING are collapsed into a
|
|||
single space character, and leading/trailing whitespace is
|
||||
removed."
|
||||
(let ((blank "[[:blank:]\n]+"))
|
||||
(string-trim (replace-regexp-in-string blank " " string)
|
||||
(string-trim (replace-regexp-in-string blank " " string t t)
|
||||
blank blank)))
|
||||
|
||||
(defun string-fill (string length)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue