summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/html.c
diff options
context:
space:
mode:
authoranton <anton@cvs.openbsd.org>2021-05-22 05:49:33 +0000
committeranton <anton@cvs.openbsd.org>2021-05-22 05:49:33 +0000
commit36370273cf793634f24db9347b528ad9c4e88534 (patch)
treee057e6a3b6931095fa3ed709ce95eed8cb89a737 /usr.bin/mandoc/html.c
parent1e2bfb97c42d8f4fc851957854b90f218871fec9 (diff)
In revision 1.95 of cgi.c, a meta viewport element was added to the HTML output.
Let `mandoc -Thtml' behave the same, makes the generated HTML a bit more pleasant to view on a mobile device. ok schwarze@
Diffstat (limited to 'usr.bin/mandoc/html.c')
-rw-r--r--usr.bin/mandoc/html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/mandoc/html.c b/usr.bin/mandoc/html.c
index a922fe5e82b..3b85019005e 100644
--- a/usr.bin/mandoc/html.c
+++ b/usr.bin/mandoc/html.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: html.c,v 1.143 2021/05/16 18:08:37 schwarze Exp $ */
+/* $OpenBSD: html.c,v 1.144 2021/05/22 05:49:32 anton Exp $ */
/*
* Copyright (c) 2011-2015, 2017-2020 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -194,6 +194,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");