From: janneke <janneke>
Date: Sun, 14 Mar 2004 22:14:45 +0000 (+0000)
Subject: (Lilypond_snippet.output_texinfo):
X-Git-Tag: release/2.1.36~111
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=a22d6df01475777a37ac74a74bd300f61c6b60a2;p=lilypond.git

(Lilypond_snippet.output_texinfo):
Print filename for HTML, LATEX, before texidoc.
---

diff --git a/ChangeLog b/ChangeLog
index 7440e861b1..dbef003a20 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2004-03-14  Jan Nieuwenhuizen  <janneke@gnu.org>
 
+	* scripts/lilypond-book.py (Lilypond_snippet.output_texinfo):
+	Print filename for HTML, LATEX, before texidoc.
+
 	* scm/output-tex.scm (ps-output-expression): Eval embedded-ps
 	instructions in output-ps module.
 
diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py
index 587879a50a..6ff3f16faa 100644
--- a/scripts/lilypond-book.py
+++ b/scripts/lilypond-book.py
@@ -517,9 +517,10 @@ class Lilypond_snippet (Snippet):
 		return images
 		
 	def output_html (self):
-		str = self.output_print_filename (HTML)
+		str = ''
 		base = self.basename ()
 		if format == HTML:
+			str += self.output_print_filename (HTML)
 			if VERBATIM in self.options:
 				verb = verbatim_html (self.substring ('code'))
 				str += write (output[HTML][VERBATIM] % vars ())
@@ -544,9 +545,10 @@ class Lilypond_snippet (Snippet):
 		return str
 
 	def output_latex (self):
-		str = self.output_print_filename (LATEX)
+		str = ''
 		base = self.basename ()
 		if format == LATEX:
+			str += self.output_print_filename (LATEX)
 			if  VERBATIM in self.options:
 				verb = self.substring ('code')
 				str += (output[LATEX][VERBATIM] % vars ())
@@ -565,6 +567,11 @@ class Lilypond_snippet (Snippet):
 
 	def output_texinfo (self):
 		str = ''
+		# self.output_print_filename (TEXINFO)
+		str += ('@html\n' + self.output_print_filename (HTML)
+			+ '\n@end html\n')
+		str += ('@tex\n' + self.output_print_filename (LATEX)
+			+ '\n@end tex\n')
 		base = self.basename ()
 		if TEXIDOC in self.options:
 			texidoc = base + '.texidoc'