[bug #68537] [ms] automatically numbered footnotes don't work right in tbl(1) tables
"G. Branden Robinson" <[email protected]> Fri, 17 Jul 2026 20:30:23 -0400 (EDT)
| Newsgroups | gmane.comp.printing.groff.bugs |
|---|---|
| Message-ID | <[email protected]> |
Follow-up Comment #3, bug #68537 (group groff):
At 2026-07-17T20:17:31-0400, Deri James wrote:
> Update of bug #68537 (group groff):
>
> Status: None => Unreproducible
> Assigned to: None => gbranden
>
> _______________________________________________________
>
> Follow-up Comment #2:
>
> Sorry Branden can't reproduce.
Well, it's not an urgent problem, as it's not a regression from previous
groff releases...
$ ~/groff-1.24.1/bin/nroff -t -ms
ATTIC/automatic-number-footnote-mark-in-table.ms | cat -s
This is my ms document.
foo[2]
───────────
[1] Bar.
$ ~/groff-1.24.0/bin/nroff -t -ms
ATTIC/automatic-number-footnote-mark-in-table.ms | cat -s
This is my ms document.
foo[2]
───────────
[1] Bar.
$ ~/groff-1.23.0/bin/nroff -t -ms
ATTIC/automatic-number-footnote-mark-in-table.ms | cat -s
This is my ms document.
foo[2]
───────────
[1] Bar.
$ ~/groff-1.22.4/bin/nroff -t -ms
ATTIC/automatic-number-footnote-mark-in-table.ms | cat -s
This is my ms document.
foo2
───────────
1 Bar.
$ ~/groff-1.22.3/bin/nroff -t -ms
ATTIC/automatic-number-footnote-mark-in-table.ms | cat -s
This is my ms document.
foo2
───────────
1 Bar.
...and as noted, no other troff gets this right either.
> derij@pip:~/groff-git/groff/build (master) $ git diff
> derij@pip:~/groff-git/groff/build (master) $ ./test-groff -t -rLL=80n -ms -T
> utf8 -P -c doc/ms.ms > ms.1
> derij@pip:~/groff-git/groff/build (master) $ git stash apply
> Auto-merging tmac/s.tmac
> derij@pip:~/groff-git/groff/build (master *) $ git diff
> diff --git a/tmac/s.tmac b/tmac/s.tmac
> index 0cedf239d..8370ed4b1 100644
> --- a/tmac/s.tmac
> +++ b/tmac/s.tmac
> @@ -864,7 +864,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.
> @@ -884,6 +884,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
> .\}
> derij@pip:~/groff-git/groff/build (master *) $ ./test-groff -t -rLL=80n -ms
> -T
> utf8 -P -c doc/ms.ms > ms.2
> derij@pip:~/groff-git/groff/build (master *) $ diff -U0 ms.[12]
>
> No difference at all.
Can't account for that. Too brain-fried to try right now.
I finagled a workaround into groff-pdf-features.ms in today's push.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68537>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCalrJHwAKCRCqLAuaBUf3 TsmkAQDk0Etk9wGfa/Rp31ZtPQe/pY43AJFVNwZxd67a+/NZmwD/YgHzOI7ILr4D V+jLfAiBApyoJ4HITR3Xk5b3hHmdyQs= =Cyr/ -----END PGP SIGNATURE-----