From a3571ee39bec82d15d9a183aed7f7db39e0a160f Mon Sep 17 00:00:00 2001 From: xuri Date: Tue, 17 Jul 2018 15:28:22 +0800 Subject: Bugfix: create worksheet cause file issue. Relate issue #249. --- comment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'comment.go') diff --git a/comment.go b/comment.go index 92dd71d..ab10310 100644 --- a/comment.go +++ b/comment.go @@ -15,7 +15,7 @@ func parseFormatCommentsSet(formatSet string) (*formatComment, error) { Author: "Author:", Text: " ", } - err := json.Unmarshal(parseFormatSet(formatSet), &format) + err := json.Unmarshal([]byte(formatSet), &format) return &format, err } -- cgit v1.2.1