From: Graham Percival Date: Fri, 5 Feb 2010 18:59:18 +0000 (+0000) Subject: Web build: fix color generation. X-Git-Tag: release/2.13.13-1~32 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ad2ea33b190544264f0b7ace43a24fa4e1b80e59;p=lilypond.git Web build: fix color generation. I have **no clue** why lc_last() screws up the colors in this one case, but the workaround appears to work, so yay. --- diff --git a/Documentation/lilypond-texi2html.init b/Documentation/lilypond-texi2html.init index fe3540ef22..376e201a8c 100644 --- a/Documentation/lilypond-texi2html.init +++ b/Documentation/lilypond-texi2html.init @@ -815,7 +815,8 @@ sub lilypond_element_file_name($$$) if (exists ($node_to_filename_map->{$node_name})) { (my $filename, my $anchor) = @{$node_to_filename_map->{$node_name}}; $filename .= ".$docu_ext" if (defined($docu_ext)); - $filename = lc_last($filename); + # don't do lc_last here, otherwise the colors are messed up! + $filename = lc($filename); # unnumbered sections (except those at top-level!) always go to the same # file as the previous numbered section @@ -831,6 +832,7 @@ sub lilypond_element_file_name($$$) $lastfilename = $filename; } print STDERR "Output file name: $filename\n"; + $filename = lc_last($filename); return $filename; } elsif ($type eq "top" or $type eq "toc" or $type eq "doc" or