From 1ac6929e56addaf5678a147cd1c4e1cb2f7806c5 Mon Sep 17 00:00:00 2001 From: Cory Bennett Date: Tue, 17 Feb 2015 10:40:11 -0800 Subject: [PATCH] fix view template for empty description --- jira/cli/templates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jira/cli/templates.go b/jira/cli/templates.go index 4a9f970..f78f855 100644 --- a/jira/cli/templates.go +++ b/jira/cli/templates.go @@ -34,7 +34,7 @@ blockers: {{ range .fields.issuelinks }}{{if .outwardIssue}}{{ .outwardIssue.key depends: {{ range .fields.issuelinks }}{{if .inwardIssue}}{{ .inwardIssue.key }}[{{.inwardIssue.fields.status.name}}]{{end}}{{end}} priority: {{ .fields.priority.name }} description: | - {{ .fields.description | indent 2 }} + {{ if .fields.description }}{{.fields.description | indent 2 }}{{end}} comments: {{ range .fields.comment.comments }} - | # {{.author.name}} at {{.created}}