[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#31196: 27.0.50; shr sometimes doesn't break lines as it should
From: |
Lars Ingebrigtsen |
Subject: |
bug#31196: 27.0.50; shr sometimes doesn't break lines as it should |
Date: |
Tue, 17 Apr 2018 19:43:00 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Lars Ingebrigtsen <larsi@gnus.org>
>> 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