Subject: Re: bug#31196: 27.0.50; shr sometimes doesn't break lines as it should

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 17 Apr 2018 19:43:00 +0200

Eli Zaretskii <[email-masked]> writes:

>> From: Lars Ingebrigtsen <[email-masked]>
>> Date: Tue, 17 Apr 2018 19:03:38 +0200
>> 
>> (- (window-body-width nil t)
>>    (* 2 (frame-char-width))
>>    (if (and (null shr-width)
>>             (not (shr--have-one-fringe-p)))
>>        (* (frame-char-width) 2)
>>      0))
>> 
>> This kludge is how shr computes how many pixels the window has
>> horizontally.
>
> Why is that a kludge?

Well, perhaps not a kludge, but very complicated for something you'd
think would be a metric that's more easily available.

And it seems to be 1 pixel wrong.  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no