From f206ae3ba25c4b752b7fbab685aacc9b2a684bb7 Mon Sep 17 00:00:00 2001 From: Cory Bennett Date: Mon, 16 Feb 2015 08:53:37 -0800 Subject: [PATCH] fix indent for override coments in edit template --- jira/cli/templates.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jira/cli/templates.go b/jira/cli/templates.go index 9f53629..3676275 100644 --- a/jira/cli/templates.go +++ b/jira/cli/templates.go @@ -44,7 +44,7 @@ const default_edit_template = `update: comment: - add: body: | - {{ or .overrides.comment ""}} + {{ or .overrides.comment "" | indent 10 }} fields: summary: {{ or .overrides.summary .fields.summary }} components: # {{ range .meta.fields.components.allowedValues }}{{.name}}, {{end}}{{if .overrides.components }}{{ range (split "," .overrides.components)}} @@ -91,5 +91,5 @@ const default_create_template = `fields: ` const default_comment_template = `body: | - + {{ or .overrides.comment | indent 2 }} `