ports/textproc/p5-Pod-Perldoc/files/patch-lib_Pod_Perldoc.pm
Mathieu Arnold 500e6a241e Have perldoc use mandoc before *roff. Also, fix perldoc when using more as a
pager.

Differential Revision:	https://reviews.freebsd.org/D2373
With hat:	perl@
Sponsored by:	Absolight
2015-04-27 14:32:09 +00:00

10 lines
497 B
Perl

--- lib/Pod/Perldoc.pm.orig 2015-02-12 03:07:39 UTC
+++ lib/Pod/Perldoc.pm
@@ -1920,6 +1920,7 @@ sub page { # apply a pager to the outpu
# fix visible escape codes in ToTerm output
# https://bugs.debian.org/758689
local $ENV{LESS} = defined $ENV{LESS} ? "$ENV{LESS} -R" : "-R";
+ local $ENV{MORE} = defined $ENV{MORE} ? "$ENV{MORE} -R" : "-R";
last if system("$pager \"$output\"") == 0;
}
}