From 04342d365406468b9d82ad81277f20d5bfd0eb4d Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 14 Sep 2025 18:24:31 +0300 Subject: [PATCH] * lisp/net/shr.el (shr-tag-sub): Handle BOB (bug#79448). --- lisp/net/shr.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/net/shr.el b/lisp/net/shr.el index b25b6783066..c90230c1703 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -1644,7 +1644,7 @@ Based on https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-infore ;; happen sometimes because of a
tag and the intent seems to be ;; alignment of subscript and superscript but I don't think that is ;; possible in Emacs. So we remove the newline in that case. - (when (bolp) + (when (and (bolp) (not (bobp))) (forward-char -1) (delete-char 1)) (let ((start (point)))