diff --git a/tags/tag.go b/tags/tag.go index 4350ecbc..f369c99d 100644 --- a/tags/tag.go +++ b/tags/tag.go @@ -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 }