From d12800303fc1f3f6c45806ee0b1e638d20478938 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 17 Apr 2018 20:34:12 +0200 Subject: [PATCH] Tweak shr window width computation * lisp/net/shr.el (shr-insert-document): The computation of the window width is apparently one pixel too wide for the shr line folding algorithm (bug#31196). --- 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 2d913a5a92f..0fc7ccf9582 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -274,7 +274,8 @@ DOM should be a parse tree as generated by (if (and (null shr-width) (not (shr--have-one-fringe-p))) (* (frame-char-width) 2) - 0))))) + 0) + 1)))) (max-specpdl-size max-specpdl-size) bidi-display-reordering) ;; If the window was hscrolled for some reason, shr-fill-lines -- 2.39.5