From dfea2356b8eb144c3ccf775528b0b5e3cf5a9b71 Mon Sep 17 00:00:00 2001
From: Han-Wen Nienhuys <hanwen@xs4all.nl>
Date: Sun, 27 Mar 2005 12:44:09 +0000
Subject: [PATCH] (main): add png for HTML too, guess only if necessary. Thanks
 to John Williams.

---
 ChangeLog                | 6 ++++++
 scripts/lilypond-book.py | 5 +++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 93fd797f55..f5e76a1faf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2005-03-27  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+	* scripts/lilypond-book.py (main): add png for HTML too, guess
+	only if necessary. Thanks to John Williams.
+
+	* flower/include/virtual-methods.hh: simplify. Patch by Matthias
+	Neeracher.
+
 	* mf/GNUmakefile (depth): use $(FONTFORGE). Patch by Jeff Smith
 	<whydoubt@yahoo.com>
 
diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py
index 58ad1d3068..6f26c1ff84 100644
--- a/scripts/lilypond-book.py
+++ b/scripts/lilypond-book.py
@@ -1447,10 +1447,11 @@ def main ():
 
 	file = files[0]
 	global process_cmd, format
-	format = guess_format (files[0])
+	if not format:
+		format = guess_format (files[0])
 
 	formats = 'ps'
-	if format == TEXINFO:
+	if format == TEXINFO or format == HTML: 
 		formats += ',png' 
 	if process_cmd == '':
 		process_cmd = lilypond_binary + ' --formats=%s --backend eps ' % formats
-- 
2.39.5