From 099243941f1bcab96bcd001d63a5d64db21ab076 Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Fri, 14 Aug 2020 18:14:38 -0700 Subject: [PATCH] fix for RT #133161, perltidy -html not working on pod --- lib/Perl/Tidy/HtmlWriter.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Perl/Tidy/HtmlWriter.pm b/lib/Perl/Tidy/HtmlWriter.pm index 20c52eda..836f0cab 100644 --- a/lib/Perl/Tidy/HtmlWriter.pm +++ b/lib/Perl/Tidy/HtmlWriter.pm @@ -30,10 +30,10 @@ use vars qw{ #{ eval "use HTML::Entities"; $missing_html_entities = $@; } BEGIN { - if ( !eval { require HTML::Entities; 1 } ) { + if ( !eval { use HTML::Entities; 1 } ) { $missing_html_entities = $@ ? $@ : 1; } - if ( !eval { require Pod::Html; 1 } ) { + if ( !eval { use Pod::Html; 1 } ) { $missing_pod_html = $@ ? $@ : 1; } } -- 2.39.5