Skip to content

Commit

Permalink
favor mandoc with perl poddoc
Browse files Browse the repository at this point in the history
  • Loading branch information
laffer1 committed Jan 11, 2024
1 parent 1b95803 commit b525dd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions contrib/perl/cpan/Pod-Perldoc/lib/Pod/Perldoc/BaseTo.pm
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ BEGIN {
*is_openbsd = $^O =~ m/openbsd/ ? \&TRUE : \&FALSE unless defined &is_openbsd;
*is_freebsd = $^O =~ m/freebsd/ ? \&TRUE : \&FALSE unless defined &is_freebsd;
*is_bitrig = $^O =~ m/bitrig/ ? \&TRUE : \&FALSE unless defined &is_bitrig;
*is_midnightbsd = $^O =~ m/midnightbsd/ ? \&TRUE : \&FALSE unless defined &is_midnightbsd;
}

sub _perldoc_elem {
Expand Down
2 changes: 1 addition & 1 deletion contrib/perl/cpan/Pod-Perldoc/lib/Pod/Perldoc/ToMan.pm
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ sub init {
sub _roffer_candidates {
my( $self ) = @_;

if( $self->is_openbsd || $self->is_freebsd || $self->is_bitrig ) { qw( mandoc groff nroff ) }
if( $self->is_openbsd || $self->is_freebsd || $self->is_bitrig || $self->is_midnightbsd ) { qw( mandoc groff nroff ) }
else { qw( groff nroff mandoc ) }
}

Expand Down

0 comments on commit b525dd4

Please sign in to comment.