bugGNU roff - Bugs: bug #61995, pdf.tmac needs compatibility mode...

 
 

bug #61995: pdf.tmac needs compatibility mode guard

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Sat 05 Feb 2022 03:59:22 PM UTC
   
 
Category:  Driver gropdf Severity:  3 - Normal
Item Group:  Incorrect behaviour Status:  Fixed
Privacy:  Public Assigned to:  gbranden
Open/Closed:  Closed Planned Release:  1.23.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 05 Feb 2022 06:01:38 PM UTC, comment #1: 

Fixed and generalized.


commit 236962f5f86f60640253c0229c2116d538693a3b
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   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>.

commit f8e055dd37c1ca8e06a66119b144319abfe5e313
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Sun Feb 6 03:54:23 2022 +1100

    [tmac]: Add more compatibility mode guards.

commit 35c9be9859b2362fdc2c9e09e2afe2c3c5ceef58
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Sun Feb 6 03:55:59 2022 +1100

    * tmac/a4.tmac: Work in compatibility mode.

    It's shorter to use legacy syntax than mess with guards.


G. Branden Robinson <gbranden>
Group administrator
Sat 05 Feb 2022 03:59:22 PM UTC, original submission:  


$ printf 'a\n' | groff -z -Tpdf -C
/usr/share/groff/1.22.4/tmac/pdf.tmac:32: error: end of file while defining macro 'pd'
$ sed -n '32p' /usr/share/groff/1.22.4/tmac/pdf.tmac
.de pdf:SS


I don't see why geriatric *roff documents shouldn't be able to
be prepared for PDF output.

I expect that all there is to this is to add compatibility mode
guards like so many other of our macro files (and man pages)
have.

Will work on it.

G. Branden Robinson <gbranden>
Group administrator

 

(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 gbranden (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.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-02-05 gbranden StatusIn Progress Fixed
        Open/ClosedOpen Closed
        Planned ReleaseNone 1.23.0

    Back to the top

    Powered by Savane 3.13-0329.
    Corresponding source code