fix issue#414

This commit is contained in:
AllenX2018
2020-06-11 12:08:04 +08:00
parent 06838de5d2
commit 05bf3807d3
3 changed files with 40 additions and 4 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ func tomlValueStringRepresentation(v interface{}, commented string, indent strin
return "\"" + encodeTomlString(value) + "\"", nil
case []byte:
b, _ := v.([]byte)
return tomlValueStringRepresentation(string(b), commented, indent, ord, arraysOneElementPerLine)
return string(b), nil
case bool:
if value {
return "true", nil