]> git.donarmstrong.com Git - perltidy.git/commitdiff
fixed call to undefined sub warning
authorSteve Hancock <perltidy@users.sourceforge.net>
Wed, 2 Sep 2020 22:59:27 +0000 (15:59 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Wed, 2 Sep 2020 22:59:27 +0000 (15:59 -0700)
lib/Perl/Tidy/HtmlWriter.pm

index f422f637bfa4aa9af6c05c780ad9a6ef36d9262c..c5c82c7fa54fcd54fd0d1b322e94b7bb296a6d49 100644 (file)
@@ -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