[Bug 289786] mdoc footer in stable/15 and main has horrible formatting
Date: Tue, 23 Sep 2025 21:53:18 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289786 --- Comment #7 from Ingo Schwarze <schwarze@usta.de> --- I believe the OP is likely talking about mandoc -T ps or -T pdf output mode, but chose to not mention that in this bug report. At least i can reproduce broken formatting of the footer line in roughly the way shown in the two PNG attachments in -T ps and -T pdf output mode on OpenBSD-current. I suspect this is an unfixed regression caused by the massive reorganization committed on 2025-07-16 14:45 with the commit message starting with "In 2009, kristaps@ decided that using EN as the basic unit for horizontal widths on terminal output devices was the simplest option. [...] Fix this by changing many internal variables in the terminal formatter to store widths in units of BU instead of EN, improving compatibility." Contrary to what one might expect, the -T ps and -T pdf output modes are actually submodes of the terminal formatter, which means that this reorg *can* cause fallout in these modes, and the symptoms seem broadly consistent with something going awry with width measurements and/or horizontal alignment. I do not have a fix yet, but i shall investigate, so please bear with me, i hope to provide an update during the next few days. Files potentially involved are mdoc_term.c, term_ps.c, term.c, and the *time*() functions in mandoc.c, and interactions among the functions in these files. -- You are receiving this mail because: You are on the CC list for the bug.