From 5a9965f0c720698a44262160983ea089ce67f0d5 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Mon, 6 Dec 2021 21:43:39 +0100 Subject: [PATCH] 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 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 -- 2.39.2