mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-11 16:08:13 +00:00
Avoid jumbled order in HTML rendered by shr.el
* lisp/net/shr.el (shr-render-td): Preserve point, as shr-render-td-1 might move it as a side effect of save-window-excursion. (Bug#29348)
This commit is contained in:
parent
23bfc2d2db
commit
3198a1646e
@ -2289,8 +2289,10 @@ flags that control whether to collect or render objects."
|
||||
(<= (car (cdr attr)) width))
|
||||
(setq result (cdr attr)))))))
|
||||
result))
|
||||
(let ((result (shr-render-td-1 dom width fill)))
|
||||
(let* ((pt (point))
|
||||
(result (shr-render-td-1 dom width fill)))
|
||||
(dom-set-attribute dom cache result)
|
||||
(goto-char pt)
|
||||
result))))
|
||||
|
||||
(defun shr-render-td-1 (dom width fill)
|
||||
|
Loading…
Reference in New Issue
Block a user