diff options
| author | alex <alex@pdp7.net> | 2026-10-26 20:38:07 +0100 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2026-10-26 20:38:07 +0100 |
| commit | 8b1b90806098e09896bc91f84d4a9cf5dea7c28b (patch) | |
| tree | 8d5ed05cc5db6935254f80b5028cff6a6614e399 | |
| parent | 5d40fbeba853e6ca80736778c889a51e2de027b4 (diff) | |
| -rw-r--r-- | gemini-to-web/src/gemini_to_web/html.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gemini-to-web/src/gemini_to_web/html.py b/gemini-to-web/src/gemini_to_web/html.py index 28a3988..94ce4f5 100644 --- a/gemini-to-web/src/gemini_to_web/html.py +++ b/gemini-to-web/src/gemini_to_web/html.py @@ -97,7 +97,7 @@ def to_html(parsed: list[parser.GemElement], title_extractor=first_header_title_ def pretty(s): - return etree.tostring(html.fromstring(s), pretty_print=True).decode("utf8") + return etree.tostring(html.fromstring(s), pretty_print=True, doctype="<!DOCTYPE html>").decode("utf8") def cli_to_html(): |
