]> git.donarmstrong.com Git - lilypond.git/commitdiff
texi2html: Anchors have to start with a letter (check for !number-only is wrong)
authorReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 19 Jul 2008 19:11:32 +0000 (21:11 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 19 Jul 2008 19:11:32 +0000 (21:11 +0200)
lilypond-texi2html.init

index 768a6dbdac1b46721bc077442451b2fb9f43c2d3..bddf286bcb7b9d75b8bed0aba1173ce15bb267dc 100644 (file)
@@ -142,8 +142,8 @@ sub texinfo_file_name($)
       $str .= $addstr;
     }
   }
-  # 7: if name begins with number, prepend 't_g' (so it starts with a letter)
-  if ($str =~ /^[0-9]/) {
+  # 7: if name does not begin with a letter, prepend 't_g' (so it starts with a letter)
+  if ($str !~ /^[a-zA-Z]/) {
     $str = 't_g' . $str;
   }
   # DONE