Skip to content

Commit

Permalink
Update sqltemplate_pongo2.go
Browse files Browse the repository at this point in the history
  • Loading branch information
wizizm authored May 29, 2023
1 parent d9855bf commit e9698cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqltemplate_pongo2.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (sqlTemplate *Pongo2Template) paresSqlTemplate(filename string, filepath st
if err != nil {
return err
}
sqlIdStr := filename + "." + strings.TrimSpace(strings.Replace(strings.Replace(string(sqlId), "\r", ""), "\n", ""))
sqlIdStr := filename + "." + strings.TrimSpace(strings.ReplaceAll(strings.ReplaceAll(string(sqlId), "\r", ""), "\n", ""))
sqlTemplate.checkNilAndInit()
sqlTemplate.Template[sqlIdStr] = sqlt
sqlId = nil
Expand Down

0 comments on commit e9698cf

Please sign in to comment.