]> git.eshelyaron.com Git - emacs.git/commitdiff
Tweak shr window width computation
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 17 Apr 2018 18:34:12 +0000 (20:34 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 17 Apr 2018 18:34:12 +0000 (20:34 +0200)
* 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

index 2d913a5a92f7d9781ac902cd08ef71bf164e79cb..0fc7ccf95825b630f8a8e783eff9baee1c0bc709 100644 (file)
@@ -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