]> git.donarmstrong.com Git - perltidy.git/commitdiff
Testing Travis CI functionality
authorSteve Hancock <perltidy@users.sourceforge.net>
Sun, 20 Jun 2021 00:49:05 +0000 (17:49 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Sun, 20 Jun 2021 00:49:05 +0000 (17:49 -0700)
examples/perltidy_hide.pl
t/snippets/dump_negated_switches.pl

index df689a120016028c26a30707d8e90ff4a908dbde..d30efe70f8fd1ce16981387e684c5f5c1049db6a 100755 (executable)
@@ -2,6 +2,10 @@
 package main;
 use Perl::Tidy;
 
+# Note: This program is no longer necessary because this capability is now
+# built into perltidy, but the prograim is a good example of the use of
+# prefilters and postfilters.
+
 =pod
 
 Hide sections of as script from perltidy which are between special comments,
index dbc8182796c52657dba92f45c297557173459be2..4c5d65777e907cb3fd861b71c12a3fa6887ab1a7 100755 (executable)
@@ -86,6 +86,8 @@ foreach my $word ( sort (@short_list, @special) ) {
         $line  = " ";
     }
 }
+
+$line =~ s/\s+$//;
 print "$line\n";
 
 sub get_long_names {