summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/subr-x.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-12-22 04:24:25 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2020-12-22 04:24:25 +0100
commitd2b86118629562600c07dbc5befa78ac8b860b68 (patch)
tree0f58a2a3318f272ef14e2c7e0211d4212aece314 /lisp/emacs-lisp/subr-x.el
parentc69c65676dbca582dc6c2e59b7e19baf5da4caf0 (diff)
downloademacs-d2b86118629562600c07dbc5befa78ac8b860b68.tar.gz
emacs-d2b86118629562600c07dbc5befa78ac8b860b68.tar.bz2
emacs-d2b86118629562600c07dbc5befa78ac8b860b68.zip
Further string-clean-whitespace tweaks
* lisp/emacs-lisp/subr-x.el (string-clean-whitespace): Put \r back, which was mistakenly removed.
Diffstat (limited to 'lisp/emacs-lisp/subr-x.el')
-rw-r--r--lisp/emacs-lisp/subr-x.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/subr-x.el b/lisp/emacs-lisp/subr-x.el
index aa39fc1538f..6f4f7ed5dce 100644
--- a/lisp/emacs-lisp/subr-x.el
+++ b/lisp/emacs-lisp/subr-x.el
@@ -269,7 +269,7 @@ carriage return."
All sequences of whitespaces in STRING are collapsed into a
single space character, and leading/trailing whitespace is
removed."
- (let ((blank "[[:blank:]\n]+"))
+ (let ((blank "[[:blank:]\r\n]+"))
(string-trim (replace-regexp-in-string blank " " string t t)
blank blank)))