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: pelzflorian (Florian Pelz)
Subject: Re: [website]: Fix rendering of entities.
Date: Sun, 13 Sep 2020 00:06:27 +0200

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.

Before:

The (hashing <*ENTITY*>hellip) modules implement cryptographic hash functions 
in pure R6RS Scheme: CRC, HMAC, MD5, SHA-1, and SHA-2 (SHA-256, SHA-512).

(or in SHTML
(div (p "The " (code "(hashing " (*ENTITY* "hellip") ")") " modules implement …"

After:

The (hashing ) modules implement cryptographic hash functions in pure R6RS 
Scheme: CRC, HMAC, MD5, SHA-1, and SHA-2 (SHA-256, SHA-512).


Regards,
Florian



reply via email to

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