Follow-up Comment #2, bug #68696 (group groff): At 2026-09-12T08:31:37-0400, Ingo Schwarze wrote: > Follow-up Comment #1, bug #68696 (group groff): > > [comment #0 original submission:] > >> Point for research: Can/does temporary indentation affect a table? >> I suspect not. But should temporary indentation be _cancelled_ > > It appears it does not, and it already is cancelled in > groff-1.25.0rc2:
Thanks for this exhibit. It reveals 2 related problems, both entangled
with an inadvertent bug fix in 1.25.
> $ cat tmp.man
> .TH TEST 1 2026-09-12
> .SH DESCRIPTION
> normal text
> .br
> .ti 8n
> .TS
> box; l.
> lone table cell
> .TE
> This is a really long input line, so long that the output generated from it \
> will likely span two output lines.
> However, what about the next input line?
> .PP
> normal text
>
> $ gmdiff tmp.man
> ========== tmp.man ==========
> roff errors:
> troff:tmp.man:170: warning: ignoring temporary indentation while centering
> request in effect [-w style]
Bug #1: We should not be emitting this diagnostic. The input document
has not configured centering.
Bug #2: _tbl_ has (almost) no business configuring centering when that
hasn't been requested. Possibly this arises due to a harmless `.ce 0`
request, in which case, a simple argumentless `.ti` beforehand will
solve both issues.
Bug fix: All released versions of groff going to back to 1.22.3, and
probably further, actually _did_ permit `ti` to affect tables, and not
in a good way.
I made my own plain-roff version of your exhibit.
$ ~/groff-1.24.1/bin/nroff -t -ww ATTIC/ti-request-before-tbl.roff \
| cat -s
normal text
│ ──────────┬────────
│ lone table cell │
└─────────────────┘
This is a really long input line —— so long that it will likely
break across two output lines. However, what about the next in‐
put line?
normal text
Ugly, ugly, UGLY!
So, I'm glad I have fixed that for 1.25.
> It appears mandoc(1) is letting .ti take way too much effect.
So did groff!
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68696>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
