Skip to content

Commit 8b70ee9

Browse files
committed
Escape format characters when writing changelog
1 parent 47aa60d commit 8b70ee9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • spring-boot-project/spring-boot-tools/spring-boot-configuration-metadata-changelog-generator/src/main/java/org/springframework/boot/configurationmetadata/changelog

spring-boot-project/spring-boot-tools/spring-boot-configuration-metadata-changelog-generator/src/main/java/org/springframework/boot/configurationmetadata/changelog/ChangelogWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ private void writeCell(String content) {
210210
}
211211

212212
private String escapeForTableCell(String content) {
213-
return content.replace("|", "\\|");
213+
return content.replace("|", "\\|").replace("%", "%%");
214214
}
215215

216216
private void write(String format, Object... args) {

0 commit comments

Comments
 (0)