Skip to content

Commit 0f521a5

Browse files
committed
Fix bug template
1 parent 90d876e commit 0f521a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

template/template.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ func loadTemplates(trim func(string) string, files ...string) (map[string]*Templ
8787
if err != nil {
8888
return templates, err
8989
}
90+
if trim != nil {
91+
file = trim(file)
92+
}
9093
sub, er := BuildTemplates(file)
9194
if er0 != nil {
9295
return templates, er

0 commit comments

Comments
 (0)