From 163ff19cf3cd32bc3c50da56a587976121e3f1d2 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sun, 20 Sep 2020 13:03:20 +0200 Subject: [PATCH] Fix bug out when indenting inserted images in shr * lisp/net/shr.el (shr-fill-line): We may not have a shr-indentation text property here. In that case, default to the dynamically bound value. --- lisp/net/shr.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 1f53bc4016d..dcb64155d4b 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -714,7 +714,8 @@ size, and full-buffer size." (forward-char 1)))) (defun shr-fill-line () - (let ((shr-indentation (get-text-property (point) 'shr-indentation)) + (let ((shr-indentation (or (get-text-property (point) 'shr-indentation) + shr-indentation)) (continuation (get-text-property (point) 'shr-continuation-indentation)) start) -- 2.39.5