Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Update fix Rich Text Editor
Browse files Browse the repository at this point in the history
  • Loading branch information
quocphien90 committed Jan 15, 2019
1 parent d5f34c0 commit c76e019
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions export.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ func transformEncodingJSONValue(fields interface{}) interface{} {
group.Code, _ = transformStringFromEncoding(group.Code)
group.Name, _ = transformStringFromEncoding(group.Name)
groups = append(groups, group)
fieldEncodingValues = kintone.GroupField(groupField)
}
fieldEncodingValues = kintone.GroupField(groupField)
default:
fieldEncodingValues = fields
}
Expand Down Expand Up @@ -334,7 +334,9 @@ func writeCsv(app *kintone.App, _writer io.Writer) error {
}
}
subFieldEncoding, _ := transformStringFromEncoding(toString(subField, "\n"))
fmt.Fprint(writer, "\""+escapeCol(subFieldEncoding)+"\"")
fmt.Fprint(writer, "\"")
fmt.Fprint(writer, escapeCol(subFieldEncoding))
fmt.Fprint(writer, "\"")
}
} else {
field := record.Fields[f.Code]
Expand All @@ -347,7 +349,9 @@ func writeCsv(app *kintone.App, _writer io.Writer) error {
}
}
fieldEncoding, _ := transformStringFromEncoding(toString(field, "\n"))
fmt.Fprint(writer, "\""+escapeCol(fieldEncoding)+"\"")
fmt.Fprint(writer, "\"")
fmt.Fprint(writer, escapeCol(fieldEncoding))
fmt.Fprint(writer, "\"")
}
}
k++
Expand Down

0 comments on commit c76e019

Please sign in to comment.