Skip to content

Commit f55b5ab

Browse files
authored
Merge pull request #294 from PaintNinja/patch-1
Attempt to fix formatting descreprency for Forge update notifier
2 parents ca8ed3a + 99d2721 commit f55b5ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/forge/ForgeUpdateNotifier.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ public static String getChangelogBetweenVersions(final String startMc, final Str
145145
%s.%s
146146
====""".formatted(endMcVersionSplit[0], endMcVersionSplit[1], endForgeVersionSplit[0], endForgeVersionSplit[1]), "");
147147

148+
if (changelog.startsWith("\n")) {
149+
changelog = changelog.substring(1);
150+
}
151+
148152
return changelog;
149153
}
150154

0 commit comments

Comments
 (0)