summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2019-12-09 12:46:32 +0000
committermartin <martin@NetBSD.org>2019-12-09 12:46:32 +0000
commitfb6b53aa6bf50ea3849fcecfcf64b49865d7fdbc (patch)
tree44dfac643c6ca72b8c1d73afa783d810990587e8
parent883d53271a255cb12adc19f6c971d81bc86585d4 (diff)
Pull up following revision(s) (requested by uwe in ticket #519):
share/tmac/doc2html: revision 1.69 Use groff -Tencoding argument to emit <meta charset="..."/>
-rw-r--r--share/tmac/doc2html10
1 files changed, 9 insertions, 1 deletions
diff --git a/share/tmac/doc2html b/share/tmac/doc2html
index a83eb61b2c1..cbf120161a5 100644
--- a/share/tmac/doc2html
+++ b/share/tmac/doc2html
@@ -1,4 +1,4 @@
-.\" $NetBSD: doc2html,v 1.67.16.1 2019/11/26 08:56:51 martin Exp $
+.\" $NetBSD: doc2html,v 1.67.16.2 2019/12/09 12:46:32 martin Exp $
.\"
.\" Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -263,9 +263,17 @@ TODO:
. fl
..
.em end-macro
+.
+.\" map groff -Tencoding argument to the charset name
+.ie '\*(.T'ascii' .ds html-charset US-ASCII
+.el .ie '\*(.T'latin1' .ds html-charset ISO-8859-1
+.el .ie '\*(.T'utf8' .ds html-charset UTF-8
+.el .ab unsupported encoding \*(.T
+.
.de init-html
<html>
<head>
+ <meta charset="\\*[html-charset]"/>
<title>
\\*[document-title]\\$*
\\*[title-section]