bug-groff
[Top][All Lists]
Advanced

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

[bug #57416] [PATCH] repair .AT and .UC in the groff_man(7) macros


From: Ingo Schwarze
Subject: [bug #57416] [PATCH] repair .AT and .UC in the groff_man(7) macros
Date: Sun, 15 Dec 2019 12:04:43 -0500 (EST)
User-agent: Mozilla/5.0 (X11; OpenBSD amd64; rv:70.0) Gecko/20100101 Firefox/70.0

URL:
  <https://savannah.gnu.org/bugs/?57416>

                 Summary: [PATCH] repair .AT and .UC in the groff_man(7)
macros
                 Project: GNU troff
            Submitted by: schwarze
            Submitted on: Sun 15 Dec 2019 05:04:41 PM UTC
                Category: Macro - man
                Severity: 2 - Minor
              Item Group: Incorrect behaviour
                  Status: None
                 Privacy: Public
             Assigned to: schwarze
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

The following file does not work as expected:

.TH FOO 1
.UC 4
.SH NAME
foo

In -Tps and -Tpdf output mode, it does not print the expected string "4th
Berkeley Distribution" in the page footer because the (empty) default string
from the an-init macro overrides what the author defines with .UC.

The comment

  \" This approach gets multiple man pages right.

is a lie: it doesn't even work for a single page.
Besides, even when a file contains multiple pages, all that is needed is
setting the various strings on the right sides of the page breaks: those
strings used in the page header before, those used in the page footer after
the page break.

The attached patch works for single and multiple pages with and without .AT or
.UC; OK to push it?



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 15 Dec 2019 05:04:41 PM UTC  Name: man-UC.patch  Size: 4KiB   By:
schwarze

<http://savannah.gnu.org/bugs/download.php?file_id=48066>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57416>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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