diff options
| author | Ben Bridle <ben@derelict.engineering> | 2026-11-10 11:42:59 +1300 |
|---|---|---|
| committer | Ben Bridle <ben@derelict.engineering> | 2026-11-10 11:42:59 +1300 |
| commit | 9405e53e49c55297fad76e9db265586a40fb94f4 (patch) | |
| tree | 66ffad823adea1a4ab4de109bf80a611cf3cbf99 /src/generate_html.rs | |
| parent | 44ef17ff1a6c69a73ad5fd1e9e727386ef1890ee (diff) | |
| download | toaster-9405e53e49c55297fad76e9db265586a40fb94f4.zip | |
Fix whitespace
Diffstat (limited to 'src/generate_html.rs')
| -rw-r--r-- | src/generate_html.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/generate_html.rs b/src/generate_html.rs index 6919b5f..64a5bfd 100644 --- a/src/generate_html.rs +++ b/src/generate_html.rs @@ -251,7 +251,7 @@ pub fn document_to_html(page: &Page, website: &Website) -> String { } else if let Some(stripped) = output.strip_prefix("<code>[X]</code>") { output = format!("<input type='checkbox' disabled checked>{stripped}"); class.push_str(" checkbox"); - }else if let Some(stripped) = output.strip_prefix("[ ]") { + } else if let Some(stripped) = output.strip_prefix("[ ]") { output = format!("<input type='checkbox' disabled>{stripped}"); class.push_str(" checkbox"); } else if let Some(stripped) = output.strip_prefix("[x]") { |
