{{- $words := split . " " -}}
{{- range $word := $words -}}
{{- if (in $word "#") -}}
{{- $has_separator := cond (in $word ",") true false -}}
{{- $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 $has_separator }}, {{ end -}}
{{- else -}}
{{- $word -}}
{{- end -}}
{{- end -}}