refactor(fix): Make bug report caller responsible for newlines

This commit is contained in:
Ed Page 2026-03-04 14:31:12 -06:00
parent 8d76c4f494
commit cd30c9bd1f

View File

@ -134,7 +134,7 @@ impl<'a> DiagnosticPrinter<'a> {
let issue_link = get_bug_report_url(self.workspace_wrapper);
write!(
self.gctx.shell().err(),
"{}",
"{}\n\n",
gen_please_report_this_bug_text(issue_link)
)?;
Ok(())
@ -169,7 +169,7 @@ impl<'a> DiagnosticPrinter<'a> {
let issue_link = get_bug_report_url(self.workspace_wrapper);
write!(
self.gctx.shell().err(),
"{}",
"{}\n\n",
gen_please_report_this_bug_text(issue_link)
)?;
if !errors.is_empty() {
@ -235,7 +235,7 @@ fn gen_please_report_this_bug_text(url: &str) -> String {
{url}\n\
quoting the full output of this command we'd be very appreciative!\n\
Note that you may be able to make some more progress in the near-term\n\
fixing code with the `--broken-code` flag\n\n\
fixing code with the `--broken-code` flag\
",
)
}