This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Account for 'less' reserving an extra column
authorKarl Williamson <khw@cpan.org>
Tue, 1 Dec 2020 03:55:30 +0000 (20:55 -0700)
committerKarl Williamson <khw@cpan.org>
Tue, 1 Dec 2020 04:12:15 +0000 (21:12 -0700)
commitc1ec4bdd803f587dd2ae76548bca0ae59d0fe84b
treec4e44fd1a4e94036818dafaa12e7835bbd6f12c5
parentadd0fa588474394597ad4b9734b2d1646a7b225e
Account for 'less' reserving an extra column

After decades of stability, the 'less' pager project decided to claim an
extra column for its own use when called with certain common options.

This commit changes some of the auto-generating tools to wrap one column
earlier to compensate, and changes podcheck to also whine on wide
verbatim text one column less.  But it changes the podcheck data base
to grandfather-in all the many existing places that exceed that amount.
That means only changes made to pods after this commit will be held to
the stricter value.

Of course, what this means is those pods will wrap or truncate in these
places on an 80 column window, making them harder to read, when used
with 'less' and when it is called with the options that reserve those
two columns.  Patches welcome.

I haven't seen the wrapping problem with perldoc, and haven't
investigated much.
autodoc.pl
regen/regcomp.pl
regnodes.h
t/porting/known_pod_issues.dat
t/porting/podcheck.t