Follow-up Comment #4, bug #68354 (group groff):

This is a bug in s.tmac when used with tbl (the register fn*text-num is set
for auto-increment and tbl accesses it twice - width and output). This patch
(to s.tmac) seems to fix it:-

diff --git a/tmac/s.tmac b/tmac/s.tmac
index aa67a4d0a..dfb43a6ed 100644
--- a/tmac/s.tmac
+++ b/tmac/s.tmac
@@ -862,7 +862,7 @@ along with this program.  If not, see
<http://www.gnu.org/licenses/>.
 .vs \n[fn@sep-dist]u
 .nr fn@sep-dist \n[.v]
 .ev
-.nr fn*text-num 0 1
+.nr fn*text-num 1
 .nr fn*note-num 0 1
 .nr fn*open 0
 .\" Handle initialition tasks deferred until par module is set up.
@@ -882,6 +882,7 @@ along with this program.  If not, see
<http://www.gnu.org/licenses/>.
 .FS-MARK \\$@
 .ie \\n[.$] .fn*do-FS "\\$1" no
 .el \{\
+.       nr fn*text-num +1
 .      ie \\n[fn*text-num]>\\n[fn*note-num] .fn*do-FS \\n+[fn*note-num]
 .      el .fn*do-FS
 .\}

But I'm not absolutely convinced I have the increment in the correct place and
should similar be done to fn*note-num, (which is not passed to tbl). The
attached test script demonstrates the issue. 

test-groff -Tpdf -t -ms tblfoot.trf | okular -

This probably needs a separate bug (if there isn't one already) since it is
not an error in Groff-PDF-Features.ms per se.

(file #58627)

    _______________________________________________________

Additional Item Attachment:

Name: tblfoot.trf                    Size: 898B
    <https://file.savannah.gnu.org/file/tblfoot.trf?file_id=58627>


    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-c36938be85ff6c1b727bc7dd7fd30e48f9142870.tar.gz


    _______________________________________________________

Reply to this item at:

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

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

Attachment: signature.asc
Description: PGP signature

Reply via email to