[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #62826] [PATCH] [tmac] options "-mandoc" and '-C' are not compatibl
From: |
Bjarni Ingi Gislason |
Subject: |
[bug #62826] [PATCH] [tmac] options "-mandoc" and '-C' are not compatible |
Date: |
Thu, 28 Jul 2022 08:37:15 -0400 (EDT) |
Follow-up Comment #1, bug #62826 (project groff):
There were extra two lines ". fi" in the first patch.
>From 24e4cf7dfedd58b2a1be6c600d27fed937d24fb0 Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Date: Thu, 28 Jul 2022 12:32:11 +0000
Subject: [PATCH] [tmac] options "-mandoc" and '-C' are not compatible
See also
https://lists.gnu.org/archive/html/bug-groff/2022-07/msg00039.html
and number 40, 43, 44, and 106.
"\\*[<macro>]\\" does not work in compatibility mode after a ".do"
according to a comment earlier in the file:
.\" Due to a bug in GNU troff it necessary to have a no-op line between
.\" '.do' and '\*'.
Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
---
tmac/andoc.tmac | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/tmac/andoc.tmac b/tmac/andoc.tmac
index 4e3f0dd35..ccd930295 100644
--- a/tmac/andoc.tmac
+++ b/tmac/andoc.tmac
@@ -66,9 +66,15 @@
. do rm Dd \" force reinitialization of doc.tmac
. do mso doc.tmac
.
-. do als TH reload-man
-.
+. do ie \\n[.cp] \{\
+. do als TH reload-man
+. hw\"DO NOT REMOVE the line, see an earlier comment about a bug
+\\*(Dd\\
+. \}
+. el \{\
+. als TH reload-man
\\*(Dd\\
+. \}
..
.
.de reload-man
@@ -89,9 +95,15 @@
. do rm TH \" force reinitialization of an.tmac
. do mso an.tmac
.
-. do als Dd reload-doc
-.
+. do ie \\n[.cp] \{\
+. do als Dd reload-doc
+. hw\"DO NOT REMOVE the line, see an earlier comment about a bug
+\\*(TH\\
+. \}
+. el \{\
+. als Dd reload-doc
\\*(TH\\
+. \}
..
.
.als TH reload-man
--
2.35.1
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62826>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/