From 6a118b8c5350052de29085d92d42e6b9cd055312 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Fri, 5 Mar 2021 05:04:12 -0700 Subject: [PATCH] Markdown.pl: format --help output properly Make the full help output use the correct formatting if available so it looks as nice as possible. Signed-off-by: Kyle J. McKay --- Markdown.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Markdown.pl b/Markdown.pl index 672c8f1..92f3aa2 100755 --- a/Markdown.pl +++ b/Markdown.pl @@ -571,6 +571,8 @@ sub _require_pod_usage() { require Pod::Usage; eval 'require Pod::Text::Termcap; 1;' and @Pod::Usage::ISA = (qw( Pod::Text::Termcap )); + defined($ENV{PERLDOC}) && $ENV{PERLDOC} ne "" or + $ENV{PERLDOC} = "-oterm -oman"; } #### BBEdit/command-line text filter interface ##########################