diff --git a/core/src/main/java/com/seibel/distanthorizons/core/config/file/ConfigFileHandling.java b/core/src/main/java/com/seibel/distanthorizons/core/config/file/ConfigFileHandling.java index 0bd02668f..966bc8310 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/config/file/ConfigFileHandling.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/config/file/ConfigFileHandling.java @@ -265,7 +265,11 @@ public class ConfigFileHandling ) return; - nightConfig.setComment(entry.getNameWCategory(), " " + entry.getComment().replaceAll("\n", "\n ") + "\n "); + String comment = entry.getComment().replaceAll("\n", "\n ").trim(); + // the new line makes it easier to read and separate configs + // the space makes sure the first word of a comment isn't directly in line with the "#" + comment = "\n " + comment; + nightConfig.setComment(entry.getNameWCategory(), comment); }