Revert "ui: Use package-description-string."
This reverts commit bd03e99f66.
Reported by Ekaitz Zarraga <ekaitz@elenq.tech> at
<https://lists.gnu.org/archive/html/guix-devel/2020-06/msg00338.html>.
That commit broke would prevent "description: " from being taken into
account by the 'texi->plain-text' paragraph filling code.
			
			
This commit is contained in:
		
							parent
							
								
									415beccb1d
								
							
						
					
					
						commit
						31522dfa19
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
					@ -1471,8 +1471,12 @@ HYPERLINKS? is true, emit hyperlink escape sequences when appropriate."
 | 
				
			||||||
          (string->recutils
 | 
					          (string->recutils
 | 
				
			||||||
           (string-trim-right
 | 
					           (string-trim-right
 | 
				
			||||||
            (parameterize ((%text-width width*))
 | 
					            (parameterize ((%text-width width*))
 | 
				
			||||||
              (string-append "description: "
 | 
					              ;; Call 'texi->plain-text' on the concatenated string to account
 | 
				
			||||||
                             (or (package-description-string p) "")))
 | 
					              ;; for the width of "description:" in paragraph filling.
 | 
				
			||||||
 | 
					              (texi->plain-text
 | 
				
			||||||
 | 
					               (string-append "description: "
 | 
				
			||||||
 | 
					                              (or (and=> (package-description p) P_)
 | 
				
			||||||
 | 
					                                  ""))))
 | 
				
			||||||
            #\newline)))
 | 
					            #\newline)))
 | 
				
			||||||
  (for-each (match-lambda
 | 
					  (for-each (match-lambda
 | 
				
			||||||
              ((field . value)
 | 
					              ((field . value)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue