Don't display "nil" when no project is set

This commit is contained in:
Patrick Winter 2019-11-06 19:34:28 +01:00
parent 46f2d2b862
commit 738d01b6b9

View file

@ -261,7 +261,7 @@
(urgency (format "%0.2f" (alist-get 'urgency entry))) (urgency (format "%0.2f" (alist-get 'urgency entry)))
(priority (format " %s " (or (alist-get 'priority entry) ""))) (priority (format " %s " (or (alist-get 'priority entry) "")))
(annotations (format "%d" (length (or (alist-get 'annotations entry) '())))) (annotations (format "%d" (length (or (alist-get 'annotations entry) '()))))
(project (or (format "%s" (alist-get 'project entry)) "")) (project (or (alist-get 'project entry) ""))
(tags (or (taskwarrior--concat-tag-list (alist-get 'tags entry)) "")) (tags (or (taskwarrior--concat-tag-list (alist-get 'tags entry)) ""))
(description (format "%s" (alist-get 'description entry)))) (description (format "%s" (alist-get 'description entry))))
`(,id [,id ,urgency ,priority ,annotations ,project ,tags ,description]))) `(,id [,id ,urgency ,priority ,annotations ,project ,tags ,description])))