1
mirror of https://github.com/CarmJos/EasyConfiguration.git synced 2026-06-04 10:38:19 +08:00

feat: Support standard "pre-load" option

This commit is contained in:
2025-02-18 21:47:58 +08:00
parent bf716b06ae
commit 476cb79e2f
7 changed files with 19 additions and 24 deletions
@@ -111,7 +111,7 @@ public class YAMLSource
CommentedYAMLWriter writer = new CommentedYAMLWriter(
String.valueOf(this.pathSeparator()),
dumperOptions().getIndent(),
holder.options().get(CommentableOptions.COMMENT_EMPTY_VALUE)
holder.option(CommentableOptions.COMMENT_EMPTY_VALUE)
);
try {
fileWriter(w -> w.write(writer.saveToString(this)));