From: Lars Ingebrigtsen Date: Mon, 6 Dec 2021 20:43:39 +0000 (+0100) Subject: Fix previous shr-parse-style change X-Git-Tag: emacs-29.0.90~3611^2~4 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5a9965f0c720698a44262160983ea089ce67f0d5;p=emacs.git Fix previous shr-parse-style change * lisp/net/shr.el (shr-parse-style): Fix previous clean-up here (which wasn't well thought through). --- diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 63522b02ace..829cf151f79 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -1431,9 +1431,7 @@ ones, in case fg and bg are nil." (defun shr-parse-style (style) (when style - (save-match-data - (when (string-search "\n" style) - (setq style (replace-match " " t t style)))) + (setq style (replace-regexp-in-string "\n" " " style)) (let ((plist nil)) (dolist (elem (split-string style ";")) (when elem