CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2026/01/07 01:22:24
Modified files:
usr.bin/mandoc : man_term.c mdoc_term.c term.h term_ascii.c
term_ps.c
Log message:
Fix a bug in .ll handling:
When formatting two input files in a row, a line length set with .ll
in the first file leaked to the second file.
Also, mandoc used the changed line length for the page footer,
whereas groff resets .ll before the page footer.
Fix this as follows:
1. Set defrmargin only at program startup, based on -O width / paper.
2. Copy defrmargin to maxrmargin whenever starting an input file or footer.
3. Let .ll / setwidth() only change maxrmargin, not defrmargin.