Skip to content

Commit 13d7015

Browse files
committed
Fix formatting of ReSharper changelog notes
Fixes #1813
1 parent c25a6b0 commit 13d7015

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

rider/backend.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ task packReSharperPlugin(type: nugetPack.class) {
4343
def changelogNotes = changelog.get(pluginVersion).withFilter({ line ->
4444
!line.startsWith("- Rider:") && !line.startsWith("- Unity editor:")
4545
}).toPlainText().trim()
46+
47+
// There's a bug in the changelog plugin that adds extra newlines on Windows, possibly
48+
// due to Unix/Windows line ending mismatch.
49+
// Remove this hack once JetBrains/gradle-changelog-plugin#8 is fixed
50+
if (isWindows) {
51+
changelogNotes = changelogNotes.replaceAll("\n\n", "\r\n")
52+
}
53+
4654
def ReleaseNotes = """New in $pluginVersion
4755
4856
${changelogNotes}

0 commit comments

Comments
 (0)