bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#24893: 26.0.50; shr doesn't parse srcset <img> correctly


From: Andreas Schwab
Subject: bug#24893: 26.0.50; shr doesn't parse srcset <img> correctly
Date: Wed, 09 Nov 2016 10:55:01 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

On Nov 09 2016, Katsumi Yamaoka <address@hidden> wrote:

> On Tue, 08 Nov 2016 09:39:46 +0100, Andreas Schwab wrote:
>> On Nov 08 2016, Katsumi Yamaoka <address@hidden> wrote:
>>> -                     (let ((spec (split-string elem " ")))
>>> +                     (let ((spec (split-string elem "[\t\n ]+")))
>
>> Shouldn't this ignore leading and trailing whitespace as well?
>
> It's done by the second part?
>
> -                   (split-string srcset ", "))
> +                   (split-string (replace-regexp-in-string
> +                               "\\`[\t\n ]+\\|[\t\n ]+\\'" "" srcset)
> +                              "[\t\n ]*,[\t\n ]*"))

Looks like.

Andreas.

-- 
Andreas Schwab, SUSE Labs, address@hidden
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."





reply via email to

[Prev in Thread] Current Thread [Next in Thread]