From 1df99c0e5f5c42764a6a754ee172be53ea3e74fc Mon Sep 17 00:00:00 2001 From: wlemb Date: Sat, 7 Apr 2001 22:00:10 +0000 Subject: * tmac/doc.tmac (Cd): Simplify code. * tmac/groff_mdoc.man: Document some behaviour of `Cd' request. --- tmac/doc.tmac | 37 ++++++++----------------------------- 1 file changed, 8 insertions(+), 29 deletions(-) (limited to 'tmac/doc.tmac') diff --git a/tmac/doc.tmac b/tmac/doc.tmac index 861c74b4..17669bf1 100644 --- a/tmac/doc.tmac +++ b/tmac/doc.tmac @@ -663,13 +663,9 @@ .\" NS doc-arg-ptr .\" NS doc-curr-font .\" NS doc-curr-size -.\" NS doc-in-synopsis-count -.\" NS doc-indent-synopsis .\" NS doc-macro-name .\" NS .\" NS width register `Cd' set in doc-common -.\" -.\" needs work - not very translatable . .de Cd . if !\n[doc-arg-limit] \{\ @@ -681,8 +677,6 @@ . tm Usage: .Cd configuration_file_declaration ... (#\n[.c]) . \} . -. br -. . if !\n[doc-arg-limit] \ . return . @@ -690,29 +684,14 @@ . ie (\n[doc-arg-limit] >= \n[doc-arg-ptr]) \{\ . nr doc-curr-font \n[.f] . nr doc-curr-size \n[.ps] +. nop \*[doc-Nm-font]\c . -. ie \n[doc-in-synopsis-count] \{\ -. if "\*[doc-macro-name]"Cd" \{\ -. rs -. ie (\n[doc-in-synopsis-count] > 1) \ -. br -. el \{\ -. if !\n[doc-indent-synopsis] \ -. nr doc-indent-synopsis \n[doc-display-indent]u -. \} -. in +\n[doc-indent-synopsis]u -. ti -\n[doc-indent-synopsis]u -. nr doc-in-synopsis-count +1 -. \} -. -. nop \*[doc-Nm-font]\c -. doc-print-recursive -. in -\n[doc-indent-synopsis]u -. \} -. el \{\ -. nop \*[doc-Nm-font]\c -. doc-print-recursive -. \}\} +. if \n[doc-in-synopsis-count] \ +. br +. doc-print-recursive +. if \n[doc-in-synopsis-count] \ +. br +. \} . el \{\ . tm Usage: .Cd configuration_file_declaration ... (#\n[.c]) . doc-reset-args @@ -928,7 +907,7 @@ .\" NS doc-curr-font .\" NS doc-curr-size .\" NS doc-in-synopsis-count -.\" NS doc-indent-synopsis, +.\" NS doc-indent-synopsis .\" NS doc-macro-name .\" NS .\" NS width register `Nm' set in doc-common -- cgit v1.2.1