[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: |
Wed, 27 Jul 2022 17:45:25 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?62826>
Summary: [PATCH] [tmac] options "-mandoc" and '-C' are not
compatible
Project: GNU troff
Submitter: bjarniig
Submitted: Wed 27 Jul 2022 09:45:24 PM UTC
Category: Macro - others/general
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Wed 27 Jul 2022 09:45:24 PM UTC By: Bjarni Ingi Gislason <bjarniig>
>From 314284934893379281edd2ded2233afae00f24a0 Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Date: Wed, 27 Jul 2022 21:35:52 +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 | 22 ++++++++++++++++++----
1 file changed, 18 insertions(+), 4 deletions(-)
diff --git a/tmac/andoc.tmac b/tmac/andoc.tmac
index 4e3f0dd35..a8c65a6f2 100644
--- a/tmac/andoc.tmac
+++ b/tmac/andoc.tmac
@@ -66,9 +66,16 @@
. 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 this line, see an earlier comment about a bug
+\\*(Dd\\
+. \}
+. el \{\
+. als TH reload-man
\\*(Dd\\
+. \}
+. fi
..
.
.de reload-man
@@ -89,9 +96,16 @@
. 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 this line, see an earlier comment about a bug
+\\*(TH\\
+. \}
+. el \{\
+. als Dd reload-doc
\\*(TH\\
+. \}
+. fi
..
.
.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/
- [bug #62826] [PATCH] [tmac] options "-mandoc" and '-C' are not compatible,
Bjarni Ingi Gislason <=