From: Reinhold Kainhofer Date: Sat, 19 Jul 2008 19:11:32 +0000 (+0200) Subject: texi2html: Anchors have to start with a letter (check for !number-only is wrong) X-Git-Tag: release/2.11.58-1~32^2~117 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2072473acf85471158a225a6ccde13a92d009e98;p=lilypond.git texi2html: Anchors have to start with a letter (check for !number-only is wrong) --- diff --git a/lilypond-texi2html.init b/lilypond-texi2html.init index 768a6dbdac..bddf286bcb 100644 --- a/lilypond-texi2html.init +++ b/lilypond-texi2html.init @@ -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