1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 13:10:33 +02:00

import/utils: Wrap terms starting with @ in descriptions.

* tests/import-utils.scm ("beautify-description: escape @stuff"): Add test.
* guix/import/utils.scm (beautify-description): Also wrap terms in @code{...}
that start with an escaped @.

Change-Id: I424f626635b821af6f4c16c97b8724cdaf99de45
This commit is contained in:
Ricardo Wurmus
2025-02-11 22:11:45 +01:00
parent 36c9996b75
commit 729bfe3689
2 changed files with 7 additions and 3 deletions

View File

@@ -53,6 +53,10 @@ Differences are hard to spot, e.g. in CLOS vs. GOOPS."))
"This @@ is not Texinfo syntax. Neither is this %@@>%."
(beautify-description "This @ is not Texinfo syntax. Neither is this %@>%."))
(test-equal "beautify-description: escape @stuff"
"This is not valid syntax: @code{@@importFrom} oh dear."
(beautify-description "This is not valid syntax: @importFrom oh dear."))
(test-equal "beautify-description: wrap PascalCase words in @code"
"The term @code{DelayedMatrix} refers to a class."
(beautify-description "The term DelayedMatrix refers to a class."))