Module Name: src
Committed By: martin
Date: Mon Dec 9 12:46:32 UTC 2019
Modified Files:
src/share/tmac [netbsd-9]: doc2html
Log Message:
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="..."/>
To generate a diff of this commit:
cvs rdiff -u -r1.67.16.1 -r1.67.16.2 src/share/tmac/doc2html
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/tmac/doc2html
diff -u src/share/tmac/doc2html:1.67.16.1 src/share/tmac/doc2html:1.67.16.2
--- src/share/tmac/doc2html:1.67.16.1 Tue Nov 26 08:56:51 2019
+++ src/share/tmac/doc2html Mon Dec 9 12:46:32 2019
@@ -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]