Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/tmac Provide ability to override <title>



details:   https://anonhg.NetBSD.org/src/rev/12278e01ea90
branches:  trunk
changeset: 1006695:12278e01ea90
user:      uwe <uwe%NetBSD.org@localhost>
date:      Thu Jan 23 23:52:13 2020 +0000

description:
Provide ability to override <title>

If \*[title-section] is non-empty, use it to override the title
instead of appending it.  Nothing in the tree uses title-section
currently, so it shouldn't affect any existing document.

This override will be used by the installation notes where the default
title is less than helpful.

diffstat:

 share/tmac/doc2html |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 6da06c89633d -r 12278e01ea90 share/tmac/doc2html
--- a/share/tmac/doc2html       Thu Jan 23 23:34:47 2020 +0000
+++ b/share/tmac/doc2html       Thu Jan 23 23:52:13 2020 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: doc2html,v 1.70 2019/12/23 20:17:33 uwe Exp $
+.\" $NetBSD: doc2html,v 1.71 2020/01/23 23:52:13 uwe Exp $
 .\"
 .\" Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -276,8 +276,8 @@
 <head>
        <meta charset="\\*[html-charset]"/>
        <title>
-               \\*[document-title]\\$*
-               \\*[title-section]
+.ie '\\*[title-section]'' \\*[document-title]\\$*
+.el  \\*[title-section]
        </title>
        <style type="text/css">
        <!--



Home | Main Index | Thread Index | Old Index