guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

21/29: website: packages: Gracefully deal with empty package description


From: Ludovic Courtès
Subject: 21/29: website: packages: Gracefully deal with empty package descriptions.
Date: Wed, 6 Dec 2017 09:24:27 -0500 (EST)

civodul pushed a commit to branch master
in repository guix-artwork.

commit 17ccfa7dd493be5c6a77e88fe59002bfb2c386b2
Author: Ludovic Courtès <address@hidden>
Date:   Wed Dec 6 13:50:21 2017 +0100

    website: packages: Gracefully deal with empty package descriptions.
    
    * website/apps/packages/utils.scm (package-synopsis-shtml): Add case for
    empty/fishy descriptions.
---
 website/apps/packages/utils.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/website/apps/packages/utils.scm b/website/apps/packages/utils.scm
index a6a4674..8944269 100644
--- a/website/apps/packages/utils.scm
+++ b/website/apps/packages/utils.scm
@@ -74,6 +74,8 @@ vocabulary."
            ;; Strip the paragraph that 'texinfo->shtml' adds.
            (match (texinfo->shtml synopsis)
              (('div ('p text ...))
+              text)
+             (text                                ;fishy description
               text)))))
 
 (define git-description



reply via email to

[Prev in Thread] Current Thread [Next in Thread]