diff --git a/loader/src/main/java/net/minecraftforge/fml/loading/moddiscovery/ModInfo.java b/loader/src/main/java/net/minecraftforge/fml/loading/moddiscovery/ModInfo.java index 267f302c8..8ca516be3 100644 --- a/loader/src/main/java/net/minecraftforge/fml/loading/moddiscovery/ModInfo.java +++ b/loader/src/main/java/net/minecraftforge/fml/loading/moddiscovery/ModInfo.java @@ -80,6 +80,8 @@ public ModInfo(final ModFileInfo owningFile, final IConfigurable config) this.displayName = config.getConfigElement("displayName") .orElse(this.modId); this.description = config.getConfigElement("description") + // Normalize CRLF line endings to use LF instead + .map(desc -> desc.replace("\r\n", "\n")) .orElse("MISSING DESCRIPTION"); this.logoFile = Optional.ofNullable(config.getConfigElement("logoFile") .orElseGet(() -> ownFile.flatMap(mf -> mf.getConfigElement("logoFile"))