Fix collate

This commit is contained in:
Lunny Xiao 2023-06-30 10:08:39 +08:00
parent eb3b01d8e0
commit 4f2780ea3d
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 4 additions and 1 deletions

View File

@ -285,7 +285,10 @@ func CommentTagHandler(ctx *Context) error {
func CollateTagHandler(ctx *Context) error {
if len(ctx.params) > 0 {
ctx.col.Collate = strings.Trim(ctx.params[0], "' ")
ctx.col.Collate = ctx.params[0]
} else {
ctx.col.Collate = ctx.nextTag
ctx.ignoreNext = true
}
return nil
}