[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#62202] [PATCH v2 03/23] DRAFT TODO: guix: import: utils: Fix corner
From: |
Simon Tournier |
Subject: |
[bug#62202] [PATCH v2 03/23] DRAFT TODO: guix: import: utils: Fix corner cases beautify-descritption. |
Date: |
Mon, 18 Sep 2023 20:03:10 +0200 |
* 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
- [bug#62202] [PATCH v2 01/23] DRAFT guix: import: go: Add optional transform-version to vcs->origin., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 03/23] DRAFT TODO: guix: import: utils: Fix corner cases beautify-descritption.,
Simon Tournier <=
- [bug#62202] [PATCH v2 02/23] DRAFT TODO guix: import: utils: Add git->origin+dir., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 08/23] DRAFT import: juliahub: Add updater and recursive-importer., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 10/23] DRAFT import: juliahub: Simplify juliahub dependency management., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 07/23] DRAFT import: juliahub: Add indirect dependencies., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 16/23] DRAFT import: juliahub: Filter out stdlibs from test-dependencies., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 04/23] DRAFT import: Add julia., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 20/23] DRAFT import: juliahub: Fix version management., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 22/23] DRAFT import: juliahub: output package names as symbols., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 12/23] DRAFT import: juliahub: Add functions to parse the git repo for a git tag., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 23/23] DRAFT guix: import: julia: Fix beautify., Simon Tournier, 2023/09/18