diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2021-06-02 17:51:38 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2021-06-02 17:51:38 +0000 |
commit | fe9a9145d21e2d7cff309c80151856cdc727efd4 (patch) | |
tree | fbfe7690cf7073a9e76b6651e6f96d9a45af05f3 | |
parent | 98b498fa9b90cc4a205a05c40aa21ca614cbe6f6 (diff) | |
download | mandoc-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@.
-rw-r--r-- | html.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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"); |