[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 23:52:52 +0200 |
User-agent: |
mu4e 1.4.13; emacs 27.1 |
Ricardo Wurmus <rekado@elephly.net> writes:
> 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.
I only saw “hellip” and no other entities, so I added an extra case for
“hellip” and pushed the change.
Thanks for your comments!
--
Ricardo