From: Reinhold Kainhofer Date: Thu, 3 Apr 2008 09:08:32 +0000 (+0200) Subject: texi2html: Oops, for string comparison one should use eq, else it's always true X-Git-Tag: release/2.11.58-1~32^2~169 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=49b4ab103d61add6e7a05c5b74d41e0617129f73;p=lilypond.git texi2html: Oops, for string comparison one should use eq, else it's always true --- diff --git a/lilypond-texi2html.init b/lilypond-texi2html.init index 0a75b78f9f..74624c5da1 100644 --- a/lilypond-texi2html.init +++ b/lilypond-texi2html.init @@ -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