1 file changed, +3, -1
67e59b9Show binary files in a code box
src/html.rs
+3, -1
+3, -1
@@ -924,7 +924,9 @@ pub fn gen_blob(
924924 content,
925925 ),
926926 _ if text => write_code(&mut body, content),
927 - _ => body.push_str("binary file, cannot display\n"),
927+ _ => body.push_str(
928+ "<pre class=\"chroma\"><code><span class=\"cl\">cannot display</span></code></pre>\n",
929+ ),
928930 }
929931 if views {
930932 write_code(&mut body, content);