From f00e54157c3cd9e04f9b9100641a766fb036b56e Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Tue, 30 Sep 2008 18:29:34 +0200 Subject: [PATCH] Docs: Turn default css into prefered (rather than persistent) CSS by adding title --- buildscripts/postprocess_html.py | 2 +- lilypond-texi2html.init | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/buildscripts/postprocess_html.py b/buildscripts/postprocess_html.py index 916249886f..89d8875360 100644 --- a/buildscripts/postprocess_html.py +++ b/buildscripts/postprocess_html.py @@ -123,7 +123,7 @@ body_tag_re = re.compile ('(?i)]*)>') html_tag_re = re.compile ('(?i)') doctype_re = re.compile ('(?i)\n' -css_re = re.compile ('(?i)]*?lilypond.css">') +css_re = re.compile ('(?i)]*?lilypond.css"([^>]*)>') end_head_tag_re = re.compile ('(?i)') css_link = '\n' diff --git a/lilypond-texi2html.init b/lilypond-texi2html.init index 026d55dfb5..f05ee37a48 100644 --- a/lilypond-texi2html.init +++ b/lilypond-texi2html.init @@ -246,11 +246,11 @@ sub lilypond_css_lines ($$) } foreach my $ref (@CSS_REFS) { - $Texi2HTML::THISDOC{'CSS_LINES'} .= "\n"; + $Texi2HTML::THISDOC{'CSS_LINES'} .= "\n"; } foreach my $ref (@ALT_CSS_REFS) { - $Texi2HTML::THISDOC{'CSS_LINES'} .= "{TITLE}\" href=\"$ref->{FILENAME}\">\n"; + $Texi2HTML::THISDOC{'CSS_LINES'} .= "{FILENAME}\" title=\"$ref->{TITLE}\">\n"; } $Texi2HTML::THISDOC{'CSS_LINES'} .= "\n"; } -- 2.39.5