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-trim-right
 | 
			
		||||
            (parameterize ((%text-width width*))
 | 
			
		||||
              ;; Call 'texi->plain-text' on the concatenated string to account
 | 
			
		||||
              ;; for the width of "description:" in paragraph filling.
 | 
			
		||||
              (texi->plain-text
 | 
			
		||||
               (string-append "description: "
 | 
			
		||||
                             (or (package-description-string p) "")))
 | 
			
		||||
                              (or (and=> (package-description p) P_)
 | 
			
		||||
                                  ""))))
 | 
			
		||||
            #\newline)))
 | 
			
		||||
  (for-each (match-lambda
 | 
			
		||||
              ((field . value)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue