From 6389a1a68a0d222e032c401975d0a8828e248118 Mon Sep 17 00:00:00 2001 From: guerrillakg Date: Mon, 8 Jul 2024 15:43:32 +0200 Subject: [PATCH] #806 Skip ignoredWhitespaces when rendering concatenation --- .../java/com/typesafe/config/impl/ConfigConcatenation.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/src/main/java/com/typesafe/config/impl/ConfigConcatenation.java b/config/src/main/java/com/typesafe/config/impl/ConfigConcatenation.java index 1ed7b94cc..42c49b97f 100644 --- a/config/src/main/java/com/typesafe/config/impl/ConfigConcatenation.java +++ b/config/src/main/java/com/typesafe/config/impl/ConfigConcatenation.java @@ -287,6 +287,9 @@ public int hashCode() { @Override protected void render(StringBuilder sb, int indent, boolean atRoot, ConfigRenderOptions options) { for (AbstractConfigValue p : pieces) { + if (isIgnoredWhitespace(p)) { + continue; + } p.render(sb, indent, atRoot, options); } }