[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 5a9965f: Fix previous shr-parse-style change

From: Lars Ingebrigtsen
Subject: master 5a9965f: Fix previous shr-parse-style change
Date: Mon, 6 Dec 2021 15:43:49 -0500 (EST)

branch: master
commit 5a9965f0c720698a44262160983ea089ce67f0d5
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix previous shr-parse-style change
    * lisp/net/shr.el (shr-parse-style): Fix previous clean-up here
    (which wasn't well thought through).
 lisp/net/shr.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index 63522b0..829cf15 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]