From 5b9bb2cf9d0b9e20dfd7e01ba7f5691d84327a51 Mon Sep 17 00:00:00 2001 From: jhawk Date: Mon, 26 Nov 2001 01:16:22 +0000 Subject: [PATCH] Remove TOC entry for Sh; there are only 3 of them and they're all on page one and they add needless clutter. Additionally doc2html doesn't output a tag for them, so we cannot link to them. Lower indent level for Ss and Ss2 Add special HTML support: emit an HREF on each TOC line. There's some nasty kludging with extending the dot-leader tab stop by the width of the href, but that's life in mdoc2html. TOCs need to be regenerated, but I'm not going to bother for a while. --- distrib/notes/common/macros | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/distrib/notes/common/macros b/distrib/notes/common/macros index 283622f3f0f6..4ec4f750c1d6 100644 --- a/distrib/notes/common/macros +++ b/distrib/notes/common/macros @@ -1,4 +1,4 @@ -.\" $NetBSD: macros,v 1.12 2001/11/26 00:19:57 jhawk Exp $ +.\" $NetBSD: macros,v 1.13 2001/11/26 01:16:22 jhawk Exp $ .\" .\" Copyright (c) 1999, 2000 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -315,24 +315,22 @@ .\" .Tc import the TOC .\" .Ti depth page "item" (internal) output an entry .if dTOC \{ -.rn Sh Sh-toc -.de Sh -.Sh-toc \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9 -\.tm .Ti 0 \\n% \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9 -.. .rn Ss Ss-toc .de Ss .Ss-toc \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9 -\.tm .Ti 1 \\n% \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9 +\.tm .Ti 0 \\n% \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9 .. .rn Ss2 Ss2-toc .de Ss2 .Ss2-toc \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9 -\.tm .Ti 2 \\n% \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9 +\.tm .Ti 1 \\n% \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9 .. .\} .de Ti -\h'3n*\\$1u' \\$3\a\\$2 +.ie rHTML \{.ta (\n(.lu+\w''u)R +\h'3n*\\$1u' \\$3\a\\$2 +.\} +.el \h'3n*\\$1u' \\$3\a\\$2 .. .de Tc .Bd -literal