From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id KObnHWCOM2asZwAAe85BDQ:P1 (envelope-from ) for ; Thu, 02 May 2024 15:00:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id KObnHWCOM2asZwAAe85BDQ (envelope-from ) for ; Thu, 02 May 2024 15:00:16 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rimm.ee header.s=herman header.b=eApCf5w7; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714654816; a=rsa-sha256; cv=none; b=pAfmra88l9Vvg+aSOAo/HVaAzJnBe7eTFgt75wZmhz+96CRU28BYshV4EiFeaB5xkHg2GF RRLtzI+CuVZ0DuLJXGolk03gZ7dNwKRyhb/MfX/T+pdnkQvMb01IZJWEMQet9b7MIT1w/C pGznibJNvhSrfAjKQA6oafiJAFVczFi2liO0EJwBblorUxLh1TmQCB0HMFHO57tZ7cXpA1 j+N9qRcz+fZZsC6EDRYKUk4QXxq3P9WjgX3tVaYLmoaNVzdip7jArdXtlu5Xr8DUZzaAc4 vqiSIbUeNpemGRWa5TTI9rJ+rMnX4jcgPDOQrwu7ESvT/S14cx441W3hXFfsMg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rimm.ee header.s=herman header.b=eApCf5w7; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714654816; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=tBpnVgqP1ug8BId/7VqzrO7z19d3qaQF1qCPyATmd60=; b=st8yMZoOXdGhNKEJul0e/9sgVGg0/0+rBxixcWlGw4LyeX8sQl05yEnh8zWi18pgjA6JwX l70Ki3YbkVdW8tuaeJz9Ueb9tOjAb08lOMnh1ADr39f2WachIzEiwpiUqMYZ+xG9GfElPH 2VydDXQk8qdBL8+WyhuJ3Rdes8wlWR+QcelWoJpzOfrUl5HhZg0wTT3xGAYFr/SVIjX+ze PayFJ6Kgve4tpWRPI41Vg1Gfp9/n0+YfvYA0EyVkTo8rdNG89U0fjc0mknEF59Dkw/+d8Y ic7rGnX35J8bkmD/ZjxPIT96NWT+BVzbvbf8xW+Ryk/lX37sBJi8YjPnwhcwew== 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 5124B1B85F for ; Thu, 2 May 2024 15:00:15 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2W2V-00029F-S3; Thu, 02 May 2024 08:59:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s2W2L-00026v-FJ for guix-patches@gnu.org; Thu, 02 May 2024 08:59:45 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s2W2H-0000Xn-LZ for guix-patches@gnu.org; Thu, 02 May 2024 08:59:44 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s2W2d-0005hj-E8 for guix-patches@gnu.org; Thu, 02 May 2024 09:00:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70715] [PATCH 4/4] guix: End package descriptions with period. Resent-From: Herman Rimm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 02 May 2024 13:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70715 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70715@debbugs.gnu.org Received: via spool by 70715-submit@debbugs.gnu.org id=B70715.171465478221863 (code B ref 70715); Thu, 02 May 2024 13:00:03 +0000 Received: (at 70715) by debbugs.gnu.org; 2 May 2024 12:59:42 +0000 Received: from localhost ([127.0.0.1]:43639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2W2I-0005gU-Ey for submit@debbugs.gnu.org; Thu, 02 May 2024 08:59:42 -0400 Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:53769 helo=email.rimm.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2W2F-0005fj-Vk for 70715@debbugs.gnu.org; Thu, 02 May 2024 08:59:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman; t=1714654749; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tBpnVgqP1ug8BId/7VqzrO7z19d3qaQF1qCPyATmd60=; b=eApCf5w7rj6r13q6y28nyjwUqgq6gmRAQRLNn1GmwjNZKwb0e7GqGdWg0N6eJsALYbWhfY 2UCGae5/WqxGmqkzyfQDVfBW34ZsFXZJwY9DtfPV5JV5Q4gOSnx4X8UB4LqIvaIT9h6rfW i4NwvQCZ1vcySSs3JKlOMZ1VGmKJqzpDPl3XGlcuxnesO/G9uoV34Rmro98NJzvoS0/Jhl X1N2p4OJQ7zgzKOrqobi0cyz8PAcJ/eY4mVKh18bHIuhGF4KWvyRPuvKFTYNItgmcmcFct 1RkpFW50Lp6Kw3pBYi4fvdgeWN46X3TwHQV7s/IyvARamcXNa2M9KPE2R2iJ2w== Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id f9631cf8 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for <70715@debbugs.gnu.org>; Thu, 2 May 2024 12:59:09 +0000 (UTC) Date: Thu, 2 May 2024 14:59:00 +0200 Message-ID: <20240502125900.15177-4-herman@rimm.ee> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240502125900.15177-1-herman@rimm.ee> References: <20240502125900.15177-1-herman@rimm.ee> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Herman Rimm X-ACL-Warn: , Herman Rimm via Guix-patches From: Herman Rimm via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 5124B1B85F X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.39 X-Spam-Score: -6.39 X-TUID: fh7mCchKoyCj * guix/import/utils.scm (beautify-description): Append period to last words which do not end with one. Change-Id: Ia901dccadee6b4fef6c7f0176ce5871409ff6ce6 --- guix/import/utils.scm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/guix/import/utils.scm b/guix/import/utils.scm index 09a01cf315..e06f06e196 100644 --- a/guix/import/utils.scm +++ b/guix/import/utils.scm @@ -370,6 +370,13 @@ (define* (beautify-description description #:optional (length 80)) (cons* "This" "package" (string-downcase first) rest)) (_ words))) + (new-words + (match new-words + ((rest ... last) + (reverse (cons (if (string-suffix? "." last) + last + (string-append last ".")) + (reverse rest)))))) (cleaned (string-join (map fix-word new-words)))) ;; Use double spacing between sentences -- 2.41.0