Skip to content

Commit 8d80aad

Browse files
committed
Fix bug template
1 parent c171d6d commit 8d80aad

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
@@ -89,6 +89,9 @@ func loadTemplates(trim func(string) string, files ...string) (map[string]*Templ
8989
if err != nil {
9090
return templates, err
9191
}
92+
if trim != nil {
93+
file = trim(file)
94+
}
9295
sub, er := BuildTemplates(file)
9396
if er0 != nil {
9497
return templates, er

0 commit comments

Comments
 (0)