projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a25ba0
)
Don't bug out on certain empty elements with ids
author
Lars Ingebrigtsen
<larsi@gnus.org>
Fri, 10 Dec 2021 11:46:55 +0000
(12:46 +0100)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Fri, 10 Dec 2021 11:47:10 +0000
(12:47 +0100)
* lisp/net/shr.el (shr-descend): Fix empty-element #id targetting
(bug#52391).
lisp/net/shr.el
patch
|
blob
|
history
diff --git
a/lisp/net/shr.el
b/lisp/net/shr.el
index f33272fad8563e71219aba92950bd01d0e771fd2..48590fd675a37f17fcfcab98aea296376a08a682 100644
(file)
--- a/
lisp/net/shr.el
+++ b/
lisp/net/shr.el
@@
-605,7
+605,7
@@
size, and full-buffer size."
(insert ? )
(shr-mark-fill start))
(put-text-property (1- (point)) (point) 'display ""))
- (put-text-property
start (1+ star
t) 'shr-target-id id))
+ (put-text-property
(1- (point)) (poin
t) 'shr-target-id id))
;; If style is set, then this node has set the color.
(when style
(shr-colorize-region