aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/roff/po/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Fix two issues with .po (page offset) formatting:Ingo Schwarze2020-09-031-2/+10
| | | | | | | | | | | | 1. Truncate excessive offsets to a width reasonable in the context of manual pages instead of printing excessively long lines and sometimes causing assertion failures; found in an afl run performed by Jan Schreiber <jes at posteo dot de>. 2. Remember both the requested and the applied page offset; otherwise, subtracting an excessive width, then adding it again, would end up with an incorrectly large offset. While here, simplify the code by reverting the previous offset up front, and also add some comments to make the general ideas easier to understand.
* Naive implementation of the roff(7) .po (page offset) request.Ingo Schwarze2017-06-141-0/+5
This clearly works when .po is called on the top level, but might not be sophisticated enough if people call .po inside indentation-changing contexts, but i haven't seen that in manual pages (yet :).