groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 38/40: tmac/pdf.tmac: Add compatibility mode guards.


From: G. Branden Robinson
Subject: [groff] 38/40: tmac/pdf.tmac: Add compatibility mode guards.
Date: Sat, 5 Feb 2022 12:58:08 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 236962f5f86f60640253c0229c2116d538693a3b
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sun Feb 6 03:36:46 2022 +1100

    tmac/pdf.tmac: Add compatibility mode guards.
    
    * tmac/pdf.tmac: Add compatibility mode guards so that we can run even
      if troff is given the -C option.  Resurrect your vintage 1975 Sixth
      Edition Unix manuals from '.deth' and format them in PDF today!
    
    Fixes <https://savannah.gnu.org/bugs/?61995>.
---
 ChangeLog     | 9 +++++++++
 tmac/pdf.tmac | 7 +++++++
 2 files changed, 16 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index e0cc9594..d20796ff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2022-02-06  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * tmac/pdf.tmac: Add compatibility mode guards so that we can
+       run even if troff is given the -C option.  Resurrect your
+       vintage 1975 Sixth Edition Unix manuals from '.deth' and format
+       them in PDF today!
+
+       Fixes <https://savannah.gnu.org/bugs/?61995>.
+
 2022-02-06  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * tmac/andoc.tmac: Prefix diagnostic with package file name
diff --git a/tmac/pdf.tmac b/tmac/pdf.tmac
index 6ebce42c..c376d2f8 100644
--- a/tmac/pdf.tmac
+++ b/tmac/pdf.tmac
@@ -27,6 +27,10 @@ Much of the code in this macro has come from the excellent 
original work by
 Keith Marshall (see attribution in the pdfmark.tmac file). I, however,
 am solely responsible for any bugs I may have introduced into this file.
 ..
+.
+.do nr *groff_pdf_tmac_C \n[.cp]
+.cp 0
+.
 .mso ps.tmac
 .
 .de pdf:SS
@@ -815,6 +819,9 @@ am solely responsible for any bugs I may have introduced 
into this file.
 .device pdf: background \\$*
 ..
 .
+.cp \n[*groff_pdf_tmac_C]
+.do rr *groff_pdf_tmac_C
+.
 .\" Local Variables:
 .\" mode: nroff
 .\" fill-column: 72



reply via email to

[Prev in Thread] Current Thread [Next in Thread]