From fe250aa344626b2e6283afd2c31979dccd327778 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Thu, 30 Apr 2026 16:42:32 +0200 Subject: Fix HTML --- src/render.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/render.rs b/src/render.rs index 8e366dd..878cefa 100644 --- a/src/render.rs +++ b/src/render.rs @@ -17,13 +17,13 @@ pub fn page(path: &Path, text: &str) -> String { let body = highlight(path, text); let mut out = String::with_capacity(body.len() + 256); - out.push_str("\n\n"); + out.push_str("<!doctype html>\n<html>\n<head>\n<meta charset=\"utf-8\">\n<title>"); push_escaped(&mut out, title); out.push_str("\n\n"); + out.push_str("\n\n\n"); out.push_str(&body); - out.push('\n'); + out.push_str("\n\n\n"); out } -- cgit