Skip to content

Commit 709b9bb

Browse files
committed
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
1 parent 5ea9c74 commit 709b9bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

buildSrc/src/main/java/org/springframework/boot/build/bom/bomr/MoveToSnapshots.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ protected String issueBody(Upgrade upgrade, Issue existingUpgrade) {
9393
if (existingUpgrade != null) {
9494
lines.add("Supersedes #" + existingUpgrade.getNumber());
9595
}
96-
return String.join("\\r\\n\\r\\n", lines);
96+
return String.join("\n\n", lines);
9797
}
9898

9999
@Override

buildSrc/src/main/java/org/springframework/boot/build/bom/bomr/UpgradeBom.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ protected String issueBody(Upgrade upgrade, Issue existingUpgrade) {
8888
if (existingUpgrade != null) {
8989
lines.add("Supersedes #" + existingUpgrade.getNumber());
9090
}
91-
return String.join("\\r\\n\\r\\n", lines);
91+
return String.join("\n\n", lines);
9292
}
9393

9494
}

0 commit comments

Comments
 (0)