mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
import/utils: Escape @ in synopses.
* tests/import-utils.scm ("beautify-synopsis: escape @"): Add tests. * guix/import/utils.scm (beautify-synopsis): Replace @ with @@. Change-Id: I011d61687a098b5b50f44c1acd6f0a4eea06e9f0
This commit is contained in:
parent
d5d3cb2c15
commit
36c9996b75
2 changed files with 15 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2015, 2017, 2022, 2023, 2024 Ricardo Wurmus <rekado@elephly.net>
|
||||
;;; Copyright © 2015, 2017, 2022, 2023, 2024, 2025 Ricardo Wurmus <rekado@elephly.net>
|
||||
;;; Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com>
|
||||
;;; Copyright © 2020 Martin Becze <mjbecze@riseup.net>
|
||||
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
|
||||
|
@ -69,6 +69,14 @@ Differences are hard to spot, e.g. in CLOS vs. GOOPS."))
|
|||
"The main functions are: @code{haplo.em()} and @code{haplo.power()}; FYI."
|
||||
(beautify-description "The main functions are: haplo.em() and haplo.power(); FYI."))
|
||||
|
||||
(test-equal "beautify-synopsis: escape @"
|
||||
"This is invalid @@syntax"
|
||||
(beautify-synopsis "This is invalid @syntax"))
|
||||
|
||||
(test-equal "beautify-synopsis: escape @"
|
||||
"Just an @@ in the middle"
|
||||
(beautify-synopsis "Just an @ in the middle"))
|
||||
|
||||
(test-equal "license->symbol"
|
||||
'license:lgpl2.0
|
||||
(license->symbol license:lgpl2.0))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue