Skip to content

Commit 142e501

Browse files
author
Niko Matsakis
committed
fix committed
1 parent c41f97f commit 142e501

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

mdbook-goals/src/updates.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ pub async fn updates(
133133
let (completed, total) = progress.completed_total();
134134
let status_badge = match issue.state {
135135
ExistingIssueState::Open => {
136-
format!("<progress value="{completed}" max="{total}")
136+
format!("<progress value='{completed}' max='{total}'></progress>",)
137137
}
138138
ExistingIssueState::Closed if completed == total => {
139139
format!("![Status: Complete](https://img.shields.io/badge/Status-Completed-green)")
@@ -150,13 +150,18 @@ pub async fn updates(
150150

151151
writeln!(output, "<tr>")?;
152152
writeln!(output, "<th>")?;
153-
writeln!(output, "[#{number}]({url}", number = issue.number, url = issue_id.url())?;
153+
writeln!(
154+
output,
155+
"[#{number}]({url}",
156+
number = issue.number,
157+
url = issue_id.url()
158+
)?;
154159
writeln!(output, "</th>")?;
155160
writeln!(output, "<th>")?;
156-
writeln!(output, "{title}");
161+
writeln!(output, "{title}")?;
157162
writeln!(output, "</th>")?;
158163
writeln!(output, "<th>")?;
159-
writeln!(output, "{status_badge}");
164+
writeln!(output, "{status_badge}")?;
160165
writeln!(output, "</th>")?;
161166
writeln!(output, "</tr>")?;
162167
writeln!(output, "<tr>")?;

0 commit comments

Comments
 (0)