From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id oB9nH3aUXl8rKQAA0tVLHw (envelope-from ) for ; Sun, 13 Sep 2020 21:51:50 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id aPzCGXaUXl/1bQAAB5/wlQ (envelope-from ) for ; Sun, 13 Sep 2020 21:51:50 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0DC099401AE for ; Sun, 13 Sep 2020 21:51:49 +0000 (UTC) Received: from localhost ([::1]:32980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHZuW-0002Ib-Tw for larch@yhetil.org; Sun, 13 Sep 2020 17:51:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55630) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHZuP-0002IT-Av for guix-devel@gnu.org; Sun, 13 Sep 2020 17:51:41 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21121) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHZuN-0007Rc-MM for guix-devel@gnu.org; Sun, 13 Sep 2020 17:51:41 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1600033897; cv=none; d=zohomail.com; s=zohoarc; b=i1tkCinfndHzAC+wcAIQYrRZ7G3+jGNOR9pyXNuOea79LhgBPAnhiOEdN9wkAmrIeZzYHg/iNGaxpDcuID53hj815X92Bhi9XtzEiuAxZfqtqfwuK1Y7iPFhDkSTSghjz0BB8d5HGsLBihTRGr/b7H8DVbRwqzO+zDoE/fPoYHk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1600033897; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=k7BOsXHhzGrepKBXBrbtEAiRRIxxuxZlAhtxIlyS2R0=; b=QAfSaiLEv4gktvZM49UKKcCQcbs4gfR6FG43xuBL9Ru1FcLdkSYHFzzhhcJ3CjIBwz06t8AD0/JRH4HIlATpV2fe2u6FthbPqDb5ucO5ofbIR5di06LYfhMivOd/r14veELCkiip41M2e/gg12tRZEKfC/k3FvGlW35qHblvILI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1600033897; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=k7BOsXHhzGrepKBXBrbtEAiRRIxxuxZlAhtxIlyS2R0=; b=Ah2yTznFZ2jXXWA41thgoNjkgmqyxTm2l2y4rDojfBb1QBRelB7Oulzivw6xrIMq VTGQpLMq9yJ5iaClFLrXw8dNIRGzpuh9K2aWFxj5TigMcebVbG+aCZ9SdRHmBNbk2KC H8ndkPWB60M88mYFGcuE1clREx/kpewv39UjPKlw= Received: from localhost (p4fd5aca2.dip0.t-ipconnect.de [79.213.172.162]) by mx.zohomail.com with SMTPS id 1600033895646975.213481106023; Sun, 13 Sep 2020 14:51:35 -0700 (PDT) References: <87mu1y63cl.fsf@elephly.net> <20200912220627.h7kngy6k3xye3bp7@pelzflorian.localdomain> <87v9giyplc.fsf@elephly.net> User-agent: mu4e 1.4.13; emacs 27.1 From: Ricardo Wurmus To: "pelzflorian (Florian Pelz)" Subject: Re: [website]: Fix rendering of entities. In-reply-to: <87v9giyplc.fsf@elephly.net> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Sun, 13 Sep 2020 23:52:52 +0200 Message-ID: <875z8hz6mj.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/13 15:13:18 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: 13 X-Spam_score: 1.3 X-Spam_bar: + X-Spam_report: (1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_CSS_A=0.1 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=Ah2yTznF; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: 0.29 X-TUID: LBtJI75LaTS8 Ricardo Wurmus writes: > pelzflorian (Florian Pelz) writes: > >> On Wed, Sep 09, 2020 at 11:35:06PM +0200, Ricardo Wurmus wrote: >>> Hi Guix, >>>=20 >>> this page looks wrong: https://guix.gnu.org/packages/mpc-1.1.0/ >>>=20 >>> The non-breaking space is rendered as =E2=80=9CGNU<*ENTITY*>nbspMPC=E2= =80=9D. The >>> attached patch processes the SHTML to remove *ENTITY* nodes, replacing >>> the =E2=80=9Cnbsp=E2=80=9D entity with an actual non-breaking space; ot= her entities are >>> silently converted to a single space. >>> [=E2=80=A6] >>> + (match entity >>> + ("nbsp" (string #\xa0)) >>> + (_ " ")))) >> >> Nice find. LGTM as far as I can tell, except it would be nice if the ..= . / =E2=80=A6 in >> were not rendered= as >> a space. > > I will add another case for =E2=80=9Chellip=E2=80=9D. > > 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 =E2=80=9Chellip=E2=80=9D and no other entities, so I added an ex= tra case for =E2=80=9Chellip=E2=80=9D and pushed the change. Thanks for your comments! --=20 Ricardo