]> git.donarmstrong.com Git - lilypond.git/blobdiff - lilypond-texi2html.init
texi2html: Oops, for string comparison one should use eq, else it's always true
[lilypond.git] / lilypond-texi2html.init
index 0a75b78f9fc68efc5f3878ded3860ec80c52294a..74624c5da1ce5204f238c6b1897a6bac18c78ad2 100644 (file)
@@ -34,7 +34,7 @@ sub texinfo_file_name($)
   my @chars = split(//, $str);
   my $str = '';
   foreach my $char (@chars) {
-    if ( $char == ' ' ) { # space -> '-'
+    if ( $char eq ' ' ) { # space -> '-'
       $str .= '-';
     } elsif ( ('0' le $char and $char le '9' ) or
               ('A' le $char and $char le 'Z' ) or