From bb08e30485f0e31a010d9a3b7ae716c9bbaf45a2 Mon Sep 17 00:00:00 2001 From: Philip Hell Date: Sun, 20 Oct 2024 05:54:51 +0200 Subject: [PATCH] no longer splittling long scalar-values accross lines --- src/main/java/me/blvckbytes/bbconfigmapper/YamlConfig.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/me/blvckbytes/bbconfigmapper/YamlConfig.java b/src/main/java/me/blvckbytes/bbconfigmapper/YamlConfig.java index c98f2bd..8014a17 100644 --- a/src/main/java/me/blvckbytes/bbconfigmapper/YamlConfig.java +++ b/src/main/java/me/blvckbytes/bbconfigmapper/YamlConfig.java @@ -95,6 +95,7 @@ private LocateNodeResult( DUMPER_OPTIONS.setProcessComments(true); DUMPER_OPTIONS.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK); DUMPER_OPTIONS.setAnchorGenerator(Node::getAnchor); + DUMPER_OPTIONS.setSplitLines(false); YAML = new Yaml(new Constructor(loaderOptions), new Representer(DUMPER_OPTIONS), DUMPER_OPTIONS, loaderOptions); }