bugGNU troff - Bugs: bug #62826, [PATCH] [tmac] options...

 
 

bug #62826: [PATCH] [tmac] options "-mandoc" and '-C' are not compatible

Submitter:  Bjarni Ingi Gislason <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 Planned Release:  None
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       No canned response available

 

Thu 28 Jul 2022 12:37:15 PM UTC, comment #1: 

  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

Bjarni Ingi Gislason <bjarniig>
Wed 27 Jul 2022 09:45:24 PM UTC, original submission:  

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

Bjarni Ingi Gislason <bjarniig>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bjarniig (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

     

     

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.9