guix-devel
[Top][All Lists]
Advanced

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

Re: [website]: Fix rendering of entities.


From: Ricardo Wurmus
Subject: Re: [website]: Fix rendering of entities.
Date: Sun, 13 Sep 2020 11:48:31 +0200
User-agent: mu4e 1.4.13; emacs 27.1

pelzflorian (Florian Pelz) <pelzflorian@pelzflorian.de> writes:

> On Wed, Sep 09, 2020 at 11:35:06PM +0200, Ricardo Wurmus wrote:
>> Hi Guix,
>> 
>> this page looks wrong: https://guix.gnu.org/packages/mpc-1.1.0/
>> 
>> The non-breaking space is rendered as “GNU<*ENTITY*>nbspMPC”.  The
>> attached patch processes the SHTML to remove *ENTITY* nodes, replacing
>> the “nbsp” entity with an actual non-breaking space; other entities are
>> silently converted to a single space.
>> […]
>> +                              (match entity
>> +                                ("nbsp" (string #\xa0))
>> +                                (_ " "))))
>
> Nice find.  LGTM as far as I can tell, except it would be nice if the ... / … 
> in
> <http://guix.gnu.org/de/packages/guile-hashing-1.2.0/> were not rendered as
> a space.

I will add another case for “hellip”.

I could also convert all descriptions and extract all *ENTITY* tags to
see what entities there are to be be dealt with.

-- 
Ricardo



reply via email to

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