diff options
Diffstat (limited to 'modules/templates/helper.go')
-rw-r--r-- | modules/templates/helper.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go index 454bd648a3..ae2efc2585 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -160,6 +160,10 @@ func NewFuncMap() []template.FuncMap { return setting.DisableGitHooks }, "TrN": TrN, + // TODO: Remove this once go-ini parser supports unescaping comment characters + "UnescapeLocale": func(str string) string { + return strings.NewReplacer("\\;", ";", "\\#", "#").Replace(str) + }, }} } |