1 file changed, +3, -1
67e59b9Show binary files in a code box
author
mogi <git@paramogi.world> on 29-11-2026 23:02 UTC
committer
mogi <git@paramogi.world> on 29-11-2026 23:02 UTC
parente9adf51
+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);