Summary: | lang/perl5.28: perldoc lacks formatting (bold/underline) | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Andrew Daugherity <andrew.daugherity> |
Component: | Individual Port(s) | Assignee: | Mathieu Arnold <mat> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | Flags: | bugzilla:
maintainer-feedback?
(mat) |
Priority: | --- | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Andrew Daugherity
2019-02-27 22:19:24 UTC
There is no Pod::Perldoc::ToMandoc, so it -omandoc is ignored and goes to default. Ok, so, running "perldoc -onroff perlvar|mandoc -man" gets what should be the default, let's see how I can make that work. Yeah, I later discovered how to trace with env PERLDOCDEBUG=1 and found that there was no actual "mandoc" formatter; rather, with nonexistent perldoc -oFoo formatters, it falls back to Term on 5.26 but Text on 5.28. Additionally the pager previously defaulted to 'less -R' behavior but no longer does. "perldoc -onroff ... | mandoc -man" gives me plaintext output (similar to -otext, but without *underlining* indicated), but changing that to '... | mandoc -man -a' displays correctly formatted. However -a seems to force formatting, even when not in a tty (e.g. redirected to a file). Thanks for looking into this... I pushed an update to lang/perl5-devel with a tentative patch, let me know if it works for you. A commit references this bug: Author: mat Date: Tue Mar 12 16:56:55 UTC 2019 New revision: 495471 URL: https://svnweb.freebsd.org/changeset/ports/495471 Log: Put back a default non dumb pod formatter, and fix a probable bug in the mandoc formatter. PR: 236092 [1] Reported by: Andrew Daugherity Changes: head/lang/perl5-devel/Makefile head/lang/perl5-devel/files/patch-cpan_Pod-Perldoc_lib_Pod_Perldoc.pm head/lang/perl5-devel/files/patch-cpan_Pod-Perldoc_lib_Pod_Perldoc_ToMan.pm Works great, thanks! A commit references this bug: Author: mat Date: Thu Mar 14 21:13:02 UTC 2019 New revision: 495738 URL: https://svnweb.freebsd.org/changeset/ports/495738 Log: Put back a default non dumb pod formatter [1], and fix a probable bug in the mandoc formatter. PR: 236092 [1] Reported by: Andrew Daugherity Changes: head/lang/perl5.28/Makefile head/lang/perl5.28/files/patch-cpan_Pod-Perldoc_lib_Pod_Perldoc.pm head/lang/perl5.28/files/patch-cpan_Pod-Perldoc_lib_Pod_Perldoc_ToMan.pm |