bug-groff
[Top][All Lists]
Advanced

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

/tmac/www.tmac-sed: Register PN is not defined


From: Bjarni Ingi Gislason
Subject: /tmac/www.tmac-sed: Register PN is not defined
Date: Sat, 16 Nov 2013 22:03:39 +0000
User-agent: Mutt/1.5.20 (2009-06-14)

                           Groff Bug Report

GROFF VERSION:
1.22.2 (current-groff from 17th October 2013)

MACHINE:
laptop (i586)

OS:
GNU/Linux 3.2.46-1-rt67-1; Debian 7.2 (wheezy)

COMPILER:
gcc 4.7.2 (Debian 4.7.2-5)

INPUT FILES:
.../groff-curent/tmac/groff_www.man

COMMAND LINE:
groff -b -ww -mandoc -t -z

DESCRIPTION OF INCORRECT BEHAVIOUR OR FAULTY INPUT (SOURCE):

groff:/home/bg/opt/share/groff/1.22.2/tmac/www.tmac:527: backtrace: macro `TAG'
groff:<standard input>:164: warning: number register `PN' not defined

SUGGESTED FIX [optional]:

--- www.tmac-sed        2013-10-17 18:05:50.000000000 +0000
+++ www.tmac-sed.new    2013-11-16 20:46:08.000000000 +0000
@@ -520,10 +520,12 @@ HTML always denotes XHTML also.
 .\"
 .\"   Generate an HTML name NAME.
 .\"   Define string TAG_NAME to TEXT, if present, otherwise to \n[PN].
+.\"   Register PN is the current page number
 .\"
 .de TAG
 .  HTML <a "name=""\\$1""></a>"
 .  ie '\\$2'' \
+.    if !rPN .nr PN \\n%
 .    ds TAG_\\$1 \\n[PN]\"
 .  el \
 .    ds TAG_\\$1 \\$2\"



reply via email to

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