summaryrefslogtreecommitdiffstats
path: root/html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2021-06-02 17:51:38 +0000
committerIngo Schwarze <schwarze@openbsd.org>2021-06-02 17:51:38 +0000
commitfe9a9145d21e2d7cff309c80151856cdc727efd4 (patch)
treefbfe7690cf7073a9e76b6651e6f96d9a45af05f3 /html.c
parent98b498fa9b90cc4a205a05c40aa21ca614cbe6f6 (diff)
downloadmandoc-fe9a9145d21e2d7cff309c80151856cdc727efd4.tar.gz
In revision 1.157 of cgi.c, a meta viewport element was added to
the HTML output. Let `mandoc -Thtml' behave the same, making the generated HTML a bit more pleasant to view on a mobile device. Patch from anton@.
Diffstat (limited to 'html.c')
-rw-r--r--html.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/html.c b/html.c
index 338529d4..e111abf0 100644
--- a/html.c
+++ b/html.c
@@ -196,6 +196,8 @@ print_gen_head(struct html *h)
struct tag *t;
print_otag(h, TAG_META, "?", "charset", "utf-8");
+ print_otag(h, TAG_META, "??", "name", "viewport",
+ "content", "width=device-width, initial-scale=1.0");
if (h->style != NULL) {
print_otag(h, TAG_LINK, "?h??", "rel", "stylesheet",
h->style, "type", "text/css", "media", "all");