Skip to content

Commit 3ef313e

Browse files
authored
Merge pull request #1941 from klensy/alertr
fix alert display when build fails
2 parents f4e7752 + 07a290b commit 3ef313e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/src/github/comparison_summary.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,9 @@ async fn summarize_run(
185185
.collect::<Vec<_>>()
186186
.join("\n");
187187
let alert_row = ":exclamation: ".repeat(5);
188+
// second \n before `alert_row` needed or markdown will render this as appended to last li
188189
format!(
189-
"\n{alert_row}\n**Warning :warning:**: The following benchmark(s) failed to build:\n{benchmarks}\n{alert_row}\n"
190+
"\n{alert_row}\n**Warning :warning:**: The following benchmark(s) failed to build:\n{benchmarks}\n\n{alert_row}\n"
190191
)
191192
} else {
192193
String::new()

0 commit comments

Comments
 (0)