Improve config comment spacing

This commit is contained in:
James Seibel
2024-06-08 08:33:32 -05:00
parent b7a5bfd274
commit e41abdd176
@@ -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);
}