projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4eb749a
)
Fix previous shr-parse-style change
author
Lars Ingebrigtsen
<larsi@gnus.org>
Mon, 6 Dec 2021 20:43:39 +0000
(21:43 +0100)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Mon, 6 Dec 2021 20:43:43 +0000
(21:43 +0100)
* lisp/net/shr.el (shr-parse-style): Fix previous clean-up here
(which wasn't well thought through).
lisp/net/shr.el
patch
|
blob
|
history
diff --git
a/lisp/net/shr.el
b/lisp/net/shr.el
index 63522b02ace8a402f81a060504ee32756c4884e2..829cf151f7994414ca585d930f64df556519b2e7 100644
(file)
--- 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