[bug#39258,4/4] ui: Use package-description-string.
diff mbox series

Message ID 20200601000030.7443-5-arunisaac@systemreboot.net
State New
Headers show
Series
  • Optimize guix search
Related show

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job

Commit Message

Arun Isaac June 1, 2020, midnight UTC
* guix/ui.scm (package->recutils): Use package-description-string instead of
package-description and P_.
---
 guix/ui.scm | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Comments

Ludovic Courtès June 9, 2020, 8:34 a.m. UTC | #1
Arun Isaac <arunisaac@systemreboot.net> skribis:

> * guix/ui.scm (package->recutils): Use package-description-string instead of
> package-description and P_.

LGTM, thank you!

Patch
diff mbox series

diff --git a/guix/ui.scm b/guix/ui.scm
index 744758d1f3..caa506a645 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -1468,10 +1468,8 @@  HYPERLINKS? is true, emit hyperlink escape sequences when appropriate."
           (string->recutils
            (string-trim-right
             (parameterize ((%text-width width*))
-              (texi->plain-text
-               (string-append "description: "
-                              (or (and=> (package-description p) P_)
-                                  ""))))
+              (string-append "description: "
+                             (or (package-description-string p) "")))
             #\newline)))
   (for-each (match-lambda
               ((field . value)