From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id kMxLAkGSCGUPrgAAauVa8A:P1 (envelope-from ) for ; Mon, 18 Sep 2023 20:09:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kMxLAkGSCGUPrgAAauVa8A (envelope-from ) for ; Mon, 18 Sep 2023 20:09:05 +0200 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 BE0D36209D for ; Mon, 18 Sep 2023 20:09:04 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=CZaCVTSa; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695060544; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=ueh5ikMbN0g6E70JfTC3OyqsVG5FrnI5fdWXn/Jwc+8=; b=XpciZRnpKEg1jkYtUO9XQi8v0H76NpBr/1axG/avtAl0jUIM1WFNRkz4d5ckq8gtvf955g c8A6d92xFzAAnyNUH97Dz1kAZkd5ypprB5DP3+I3lT0KUgwdWXfR63HTwhd3idW96DDmVG 3ztpqLD5/vfv0wti6XbGxiN4gj0LuEvK4IxZIdynowNsyL6MCyOcA6kEy6mt4Yx7p6bv2N C0V22aiCduaCQU1Wf3HmtRioEFGybV2WpDS1eKD76yyDIyNNlwoL7TyABW0wRNFbP4PksB WPU713oNOOxsD3JAGXniHD2kpaV8aY58FxB5S10t/pp9vP7zuyPuv28KoaGyrg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=CZaCVTSa; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695060544; a=rsa-sha256; cv=none; b=bQbA7T2jodejMErGfXMXPZZcmjaJga/zyPrzB1AG7yvUiYjid/mrPl1pSa4+zqdJJZzT8q 7q1ksW9V1AXcLkbT0V4S/lRGda6AQFrMBwYau04nn0iGzbUixXVnHV2NpZwg4E3G9xqC0a mzfdsPoQM/xbGI7xcZ0T6C3s8GmwSRfODWDeIxNDNtbZ+pox4I828XDQSMlrdC2Z/cxJfR RTTLiBOP425BNpWWdPj27VRk/doxYnEtDufc8NwAQocvqjYATmqJfrzSHPfYGqfi6+z5aN 6hxiMFf8or+KAYim8Pe28Zwf+MV1oxGCfQ02xTewBqyWwwlMXo3bawaZ3kOPHQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qiIcI-0003LO-JG; Mon, 18 Sep 2023 14:05:03 -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 1qiIcA-00039H-TT for guix-patches@gnu.org; Mon, 18 Sep 2023 14:04:55 -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 1qiIcA-0003Y7-LE for guix-patches@gnu.org; Mon, 18 Sep 2023 14:04:54 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qiIcI-0002NI-V6 for guix-patches@gnu.org; Mon, 18 Sep 2023 14:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62202] [PATCH v2 03/23] DRAFT TODO: guix: import: utils: Fix corner cases beautify-descritption. Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 18 Sep 2023 18:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62202 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch moreinfo To: 62202@debbugs.gnu.org Cc: Simon Tournier Received: via spool by 62202-submit@debbugs.gnu.org id=B62202.16950602508795 (code B ref 62202); Mon, 18 Sep 2023 18:05:02 +0000 Received: (at 62202) by debbugs.gnu.org; 18 Sep 2023 18:04:10 +0000 Received: from localhost ([127.0.0.1]:54369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiIbR-0002Hg-Mk for submit@debbugs.gnu.org; Mon, 18 Sep 2023 14:04:09 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:40125) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiIbC-0002EZ-JG for 62202@debbugs.gnu.org; Mon, 18 Sep 2023 14:03:59 -0400 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40471c054f9so14350245e9.0 for <62202@debbugs.gnu.org>; Mon, 18 Sep 2023 11:03:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695060220; x=1695665020; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ueh5ikMbN0g6E70JfTC3OyqsVG5FrnI5fdWXn/Jwc+8=; b=CZaCVTSaocLHlgN7snCvziyRVk/1OQKNwWLsusfHeE10lw22ts0e0etihCexsAPyrH 3/f9FdarWRwmPQgIxkwT3VB7gU83XNcwbQ/biBAqoNF7fgElMC1b5UpFsOENZ6yKpe8/ ZU3odyq88kjvWY1nlIJQ5cvfcG2O4J3/HTriWuPXhoet5ghkyAdi9ob4SyPG6mM5G3bX dn55FLFHAXE7MA5NKy2E9xGtE/4WleukmDt/7FNGZn4JdwJHWbmNb8LzgkYUduQDxLBH 2RM8vT7Ki3cAh23iGjz4ysCzao4Vzy/1jtBrtEJ04YrRyLuZ0Qhek4f0zqboNAHJ/pmO MHsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695060220; x=1695665020; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ueh5ikMbN0g6E70JfTC3OyqsVG5FrnI5fdWXn/Jwc+8=; b=P0HOmuMe2cGubAO6YdkqnegKd2l8rIZQxt8PRrY0Z9CigG6iKyVYm3YBvGeTH1YGeg BA1VRSJH3KjeL8tDhCJoJMfkiWIllaeBzDpGZNP8J84yYCt6C1u8KBZ2fAwHDHcS4mXU bLrG7s/CQBHC3iWkqAx3ve2pnd9BOUykq94KbINwLTdsZfJq0i6j5jqKLW9id1rND5+s GE4XdBzR0WoYTuTJvD9WGOO9/zrPxAeTlUzT5Ax8nqrydEpZeDVpO9EYKvoyWPZKw0IT FU88LQgfTIZQhlPl+OOJn3q0hxoH6nvub14LVucvrtlmEF7ByF78kmrdfw0EGdu/4LXO /Bsg== X-Gm-Message-State: AOJu0Yxf5sIgK3g0pd4g/AYyMX0Tk5xT7/hh3cTGT1LeELDgaIweRJB+ Uvan7gyBMeeOJa+362ApcjM8YhkK2os= X-Google-Smtp-Source: AGHT+IFm9wA6MmOUqTtG/G0JKVS977NG4S/TtFi6QFz2AHOsCr9Rm40m5kn9e0+Pmt1F/qmOvB5r1g== X-Received: by 2002:adf:ecc7:0:b0:31f:899b:a47 with SMTP id s7-20020adfecc7000000b0031f899b0a47mr7943771wro.4.1695060220470; Mon, 18 Sep 2023 11:03:40 -0700 (PDT) Received: from localhost.localdomain ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id z2-20020adfd0c2000000b0030ada01ca78sm2210465wrh.10.2023.09.18.11.03.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 11:03:40 -0700 (PDT) From: Simon Tournier Date: Mon, 18 Sep 2023 20:03:10 +0200 Message-Id: <58ed3520a130805887d797300094637ba16ef0a7.1695060058.git.zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: 0.19 X-Spam-Score: 0.19 X-Migadu-Queue-Id: BE0D36209D X-TUID: djNuDqIO8TRH * guix/import/utils.scm (beautify-descritption): Fix. --- guix/import/utils.scm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/guix/import/utils.scm b/guix/import/utils.scm index 189facfcf823..01d9861f279c 100644 --- a/guix/import/utils.scm +++ b/guix/import/utils.scm @@ -339,6 +339,16 @@ (define* (beautify-description description #:optional (length 80)) ;; Escape single @ to prevent it from being understood as ;; invalid Texinfo syntax. (cut regexp-substitute/global #f "@" <> 'pre "@@" 'post) + + ;; Remove cut above + ;; (lambda (word) + ;; (if + ;; (member word '("@itemize" "@item" "@end" "@quotation" + ;; "@enumerate" "@code" "@code{")) + ;; word + ;; ((cut regexp-substitute/global + ;; #f "@" <> 'pre "@@" 'post) word))))))) + ;; Wrap camelCase or PascalCase words in @code{...}. (lambda (word) (let ((pattern (make-regexp "([A-Z][a-z]+[A-Z]|[a-z]+[A-Z])"))) -- 2.38.1