Re: encoding of Mirrors.masterlist
El 27/02/17 a las 21:30, Peter Palfrader escribió:
> On Mon, 27 Feb 2017, Bastian Blank wrote:
>
>> Hi Peter
>>
>> On Mon, Feb 27, 2017 at 08:10:30PM +0000, Peter Palfrader wrote:
>>> On Mon, 27 Feb 2017, Frans Spiesschaert wrote:
>>>> Since several days the Dutch translation team is receiving "Tidy
>>>> validation failed" emails.
>>>> This is due to a flaw in webwml/english/mirror/Mirrors.masterlist
>>>> Please find attached a patch that solves the problem.
>>> Thanks for your patch. I think it might be nicer to declare the
>>> masterlist to be utf-8, and then deal with entity encoding in the
>>> script. Options?
>>
>> HTML::Entities? WML can't handle this for us?
>
> I don't know. Maybe?
>
mmm. But we already have escaped & in mirror_list.pl in lines 601, 621
and 675:
https://anonscm.debian.org/viewvc/webwml/webwml/english/mirror/mirror_list.pl?view=markup
601 $sponsorname =~ s/&(\s+)/&$1/g;
And from my commandline:
$ ./mirror_list.pl --type sponsors | grep und
produces:
<a href="http://www.1und1.de/">1&1 Internet AG</a>
So how 1&1 becomes again 1&1?
Cheers
--
Laura Arjona Reina
https://wiki.debian.org/LauraArjona
Reply to: