{{- $words := (split .Inner " ") -}} {{- range $word := $words -}} {{- if (strings.Contains $word "#") -}} {{- $separator := false -}} {{- if (strings.Contains $word ",") -}} {{- $separator = true -}} {{- end -}} {{- $data := split $word "#" -}} {{- $bug_cat := replace (index $data 0) "\n" "" -}} {{- $bug_id := replace (index $data 1) "\n" "" -}} {{- $bug_id = replace $bug_id "," "" -}} {{- if (eq $bug_cat "Bootstrap") -}} #{{ $bug_id }} {{- else if (eq $bug_cat "Edge") -}} Edge issue #{{ $bug_id }} {{- else if (eq $bug_cat "A11yUserVoice") -}} Microsoft A11y UserVoice idea #{{ $bug_id }} {{- else if (eq $bug_cat "UserVoice") -}} Edge UserVoice idea #{{ $bug_id }} {{- else if (eq $bug_cat "Mozilla") -}} Mozilla bug #{{ $bug_id }} {{- else if (eq $bug_cat "Chromium") -}} Chromium issue #{{ $bug_id }} {{- else if (eq $bug_cat "WebKit") -}} WebKit bug #{{ $bug_id }} {{- else if (eq $bug_cat "Safari") -}} Apple Safari Radar #{{ $bug_id }} {{- else if (eq $bug_cat "Normalize") -}} Normalize #{{ $bug_id }} {{- end -}} {{- if (eq $separator true) }}, {{ end -}} {{- else -}} {{- $word -}} {{- end -}} {{- end -}}