From: Steve Hancock Date: Wed, 2 Sep 2020 22:59:27 +0000 (-0700) Subject: fixed call to undefined sub warning X-Git-Tag: 20200907~14 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=4b7b931c22b7218960d8d4c70f32b2ece0cfd1ff;p=perltidy.git fixed call to undefined sub warning --- 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