We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f15cf50 commit 1428f85Copy full SHA for 1428f85
yaml/src/main/java/io/github/almightysatan/jaskl/yaml/YamlConfig.java
@@ -329,7 +329,9 @@ public ValueRepresenter(DumperOptions options) {
329
330
@Override
331
protected Node representScalar(Tag tag, String value, DumperOptions.ScalarStyle style) {
332
- return super.representScalar(tag, value, style == null && tag == Tag.STR ? DumperOptions.ScalarStyle.DOUBLE_QUOTED : style);
+ return super.representScalar(tag, value, tag == Tag.STR && (style == null
333
+ || style == DumperOptions.ScalarStyle.PLAIN || style == DumperOptions.ScalarStyle.SINGLE_QUOTED)
334
+ ? DumperOptions.ScalarStyle.DOUBLE_QUOTED : style);
335
}
336
337
0 commit comments