import: Drop empty list items.
* guix/import/cran.scm (listify): Remove empty strings from result list.
This commit is contained in:
parent
0cb5bc2cff
commit
be036757bd
@ -128,9 +128,12 @@ empty list when the FIELD cannot be found."
|
|||||||
#f "( *\\([^\\)]+\\)) *"
|
#f "( *\\([^\\)]+\\)) *"
|
||||||
value 'pre 'post)
|
value 'pre 'post)
|
||||||
#\,)))
|
#\,)))
|
||||||
;; When there is whitespace inside of items it is probably because
|
(remove (lambda (item)
|
||||||
;; this was not an actual list to begin with.
|
(or (string-null? item)
|
||||||
(remove (cut string-any char-set:whitespace <>)
|
;; When there is whitespace inside of items it is
|
||||||
|
;; probably because this was not an actual list to
|
||||||
|
;; begin with.
|
||||||
|
(string-any char-set:whitespace item)))
|
||||||
(map string-trim-both items))))))
|
(map string-trim-both items))))))
|
||||||
|
|
||||||
(define (beautify-description description)
|
(define (beautify-description description)
|
||||||
|
Loading…
Reference in New Issue
Block a user