From ad2ea33b190544264f0b7ace43a24fa4e1b80e59 Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Fri, 5 Feb 2010 18:59:18 +0000 Subject: [PATCH] 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. --- Documentation/lilypond-texi2html.init | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5