Path: csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: Ingo Schwarze Newsgroups: gnu.groff.bug Subject: [bug #57416] [PATCH] repair .AT and .UC in the groff_man(7) macros Date: Sun, 15 Dec 2019 12:04:43 -0500 (EST) Lines: 70 Approved: bug-groff@gnu.org Message-ID: References: <20191215-170441.sv97361.84669@savannah.gnu.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain;charset=UTF-8 X-Trace: usenet.stanford.edu 1576429489 27559 209.51.188.17 (15 Dec 2019 17:04:49 GMT) X-Complaints-To: action@cs.stanford.edu To: Ingo Schwarze , bug-groff@gnu.org Envelope-to: bug-groff@gnu.org X-PHP-Originating-Script: 1001:sendmail.php X-Savane-Server: savannah.gnu.org:443 [209.51.188.79] X-Savane-Project: groff X-Savane-Tracker: bugs X-Savane-Item-ID: 57416 User-Agent: Mozilla/5.0 (X11; OpenBSD amd64; rv:70.0) Gecko/20100101 Firefox/70.0 X-Apparently-From: 84.177.239.181 (Savane authenticated user schwarze) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.79 X-BeenThere: bug-groff@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Bug reports for the GNU version of nroff, troff et al" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <20191215-170441.sv97361.84669@savannah.gnu.org> Xref: csiph.com gnu.groff.bug:1574 URL: 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 _______________________________________________________ Reply to this item at: _______________________________________________ Message sent via Savannah https://savannah.gnu.org/