From: Franco Fichtner Date: Sun, 17 Nov 2013 13:39:56 +0000 (+0000) Subject: groff: properly display $Mdocdate magic X-Git-Tag: v3.9.0~1169 X-Git-Url: https://gitweb.dragonflybsd.org/~tuxillo/dragonfly.git/commitdiff_plain/3e5a5e12f690c2ce6dbe32024705352f10d78c39 groff: properly display $Mdocdate magic OpenSSH and mdocml pages require this. Reduces the groff/mandoc output diff. I heard this was suggested upstream a while ago, but never made it into the code base. Taken-from: OpenBSD --- diff --git a/contrib/groff/tmac/doc-common b/contrib/groff/tmac/doc-common index a23ba924e4..beac7e183f 100644 --- a/contrib/groff/tmac/doc-common +++ b/contrib/groff/tmac/doc-common @@ -639,7 +639,9 @@ . ds doc-command-name . . ie \n[.$] \{\ -. ie (\n[.$] == 3) \ +. ie "\$1"$Mdocdate:" \ +. ds doc-date-string \$2\~\$3, \$4 +. el .ie (\n[.$] == 3) \ . ds doc-date-string \$1\~\$2 \$3 . el \{\ . ds doc-date-string "\*[doc-date-\n[mo]]