summaryrefslogtreecommitdiff
path: root/comment.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2018-07-17 15:28:22 +0800
committerxuri <xuri.me@gmail.com>2018-07-17 15:28:22 +0800
commita3571ee39bec82d15d9a183aed7f7db39e0a160f (patch)
tree92e5961496640d711006768f71542dae93ab89ea /comment.go
parent79dfe1c3070b3c4af14a40acaa5bd8cb477acd3e (diff)
Bugfix: create worksheet cause file issue. Relate issue #249.
Diffstat (limited to 'comment.go')
-rw-r--r--comment.go2
1 files changed, 1 insertions, 1 deletions
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
}