replace " with ' in template
atsalolikhin-spokeo opened this issue · comments
Aleksey Tsalolikhin commented
Hello,
I am trying to feed the output of go-jira to tv
I am including the Jira summary field in my output and some of the summary values have commas in them; so I added double quotes to my go template like so:
{{ range .issues }}{{ .key | append ","}}"{{ .fields.summary }}",{{ .fields.customfield_10004 }},{{ range .fields.customfield_10006}}{{ .name }}{{ end }},{{ .fields.labels }}
{{ end }}
Another issue is that some summary values have double quotes in them -- I'd like to do a find and replace to change them to single quotes, so it doesn't mess up the CSV parsing.
I am not fluent in Go. A little help would be appreciated.