From 4b7b931c22b7218960d8d4c70f32b2ece0cfd1ff Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Wed, 2 Sep 2020 15:59:27 -0700 Subject: [PATCH] fixed call to undefined sub warning --- lib/Perl/Tidy/HtmlWriter.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Perl/Tidy/HtmlWriter.pm b/lib/Perl/Tidy/HtmlWriter.pm index f422f637..c5c82c7f 100644 --- a/lib/Perl/Tidy/HtmlWriter.pm +++ b/lib/Perl/Tidy/HtmlWriter.pm @@ -534,7 +534,8 @@ sub check_options { # check for conflict if ( $css_linkname && $rOpts->{'nohtml-style-sheets'} ) { $rOpts->{'nohtml-style-sheets'} = 0; - warning("You can't specify both -css and -nss; -nss ignored\n"); + Perl::Tidy::Warn( + "You can't specify both -css and -nss; -nss ignored\n"); } # write a style sheet file if necessary -- 2.39.5