1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-24 10:01:47 +02:00

lint: Allow texinfo markup at beginning of description.

* guix/lint.scm(starts-with-texinfo-markup?): New function.
(check-description-style)[check-proper-start]: Add condition.
* tests/lint.scm: Add test case.

Change-Id: I674988882265d9e2041d48dba0f9627cd68bf292
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Gabriel Wicki
2024-12-02 23:36:44 +01:00
committed by Ludovic Courtès
parent 00879f94ee
commit f28c32089d
2 changed files with 12 additions and 1 deletions
+5
View File
@@ -121,6 +121,11 @@
(description "bad description."))))
(check-description-style pkg))))
(test-equal "description: may start with texinfo markup"
'()
(check-description-style
(dummy-package "x" (description "@emph{Maxwell Equations of Software}"))))
(test-equal "description: may start with a digit"
'()
(let ((pkg (dummy-package "x"