From 3e5a5e12f690c2ce6dbe32024705352f10d78c39 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sun, 17 Nov 2013 13:39:56 +0000 Subject: [PATCH] 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 --- contrib/groff/tmac/doc-common | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]] -- 2.41.0