summaryrefslogtreecommitdiff
path: root/tmac/doc-common
diff options
context:
space:
mode:
authorwlemb <wlemb>2003-07-03 13:55:58 +0000
committerwlemb <wlemb>2003-07-03 13:55:58 +0000
commita344b42475b6763a4af5b1f376c2ce0895c22e13 (patch)
treea021ce0160c15208dae374c3a125423ba20e32b9 /tmac/doc-common
parent8de0ac5646c673b8fdaf0f222f1ee7ee72be08f6 (diff)
downloadgroff-a344b42475b6763a4af5b1f376c2ce0895c22e13.tar.gz
* tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
after `/*' and `*/'. Fix spacing. (Fn, Fo): Reduce indentation in synopsis. * tmac/doc-common (doc-check-depth): New macro. (doc-end-macro, Sh, Ss): Use it. (Cd): Fix behaviour in synopsis. (In): Make it parsed and callable. If not in the synopsis, represent the C header file enclosed in angle brackets. (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0): Use minus, not hyphen. * tmc/groff_mdoc.man: Updated.
Diffstat (limited to 'tmac/doc-common')
-rw-r--r--tmac/doc-common28
1 files changed, 25 insertions, 3 deletions
diff --git a/tmac/doc-common b/tmac/doc-common
index 0069998f..30f16bce 100644
--- a/tmac/doc-common
+++ b/tmac/doc-common
@@ -101,7 +101,7 @@
.nr Ft 8n\" ?
.nr Fx 1
.nr Ic 10n
-.nr In 12n\" ?
+.nr In 12n
.nr It 8n\" ?
.nr Lb 11n
.nr Li 16n
@@ -587,6 +587,25 @@
..
.
.
+.\" NS doc-check-depth macro
+.\" NS check paired macros
+.
+.de doc-check-depth
+. if \n[doc-list-depth] \{\
+. tm mdoc warning: A .Bl directive has no matching .El (#\n[.c])
+. nr doc-list-depth 0
+. \}
+. if \n[doc-display-depth] \{\
+. tm mdoc warning: A .Bd directive has no matching .Ed (#\n[.c])
+. nr doc-display-depth 0
+. \}
+. if \n[doc-fontmode-depth] \{\
+. tm mdoc warning: A .Bf directive has no matching .Ef (#\n[.c])
+. nr doc-fontmode-depth 0
+. \}
+..
+.
+.
.\" NS doc-end-macro macro
.\" NS finish output
.
@@ -603,8 +622,7 @@
. pl +3v
. fl
.
-. if \n[doc-list-depth] \
-. tm mdoc warning: list open at EOF! A .Bl directive has no matching .El
+. doc-check-depth
.
. if \n[cR] \{\
. sp
@@ -834,6 +852,8 @@
.
. in +\n[doc-subheader-indent]u
. ns
+.
+. doc-check-depth
. \}
..
.
@@ -898,6 +918,8 @@
. ne 2
. br
. ns
+.
+. doc-check-depth
. \}
..
.