Allow Jackson to escape new line chars when BOMR adds issues

Remove the escaping logic when building the issue body so that Jackson
can perform the actual escaping. Prior to this commit, the message
body was double escaped.

Closes gh-43479
This commit is contained in:
Phillip Webb
2024-12-10 13:19:53 -08:00
parent 5ea9c741c8
commit 709b9bb149
2 changed files with 2 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ public abstract class MoveToSnapshots extends UpgradeDependencies {
if (existingUpgrade != null) {
lines.add("Supersedes #" + existingUpgrade.getNumber());
}
return String.join("\\r\\n\\r\\n", lines);
return String.join("\n\n", lines);
}
@Override

View File

@@ -88,7 +88,7 @@ public abstract class UpgradeBom extends UpgradeDependencies {
if (existingUpgrade != null) {
lines.add("Supersedes #" + existingUpgrade.getNumber());
}
return String.join("\\r\\n\\r\\n", lines);
return String.join("\n\n", lines);
}
}