From: hanwen <hanwen>
Date: Mon, 29 Aug 2005 23:40:47 +0000 (+0000)
Subject: (get_latex_textwidth): oops. Take [0]
X-Git-Tag: release/2.7.16^2~198
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=7664e49aa3278b7538f8adebefa29c3d778d7e3c;p=lilypond.git

(get_latex_textwidth): oops. Take [0]
of splitext.
---

diff --git a/ChangeLog b/ChangeLog
index b77d1c004e..115c987597 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-30  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+	* scripts/lilypond-book.py (get_latex_textwidth): oops. Take [0]
+	of splitext.
+
 2005-08-29  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
 	* VERSION (PACKAGE_NAME): VERSION release 2.7.8
diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py
index 504cfa4e0b..37403c2967 100644
--- a/scripts/lilypond-book.py
+++ b/scripts/lilypond-book.py
@@ -1293,7 +1293,7 @@ def get_latex_textwidth (source):
 	# Workaround problems with unusable $TMP on Cygwin:
 	tempfile.tempdir = ''
 	tmpfile = tempfile.mktemp('.tex')
-	logfile = os.path.splitext (tmpfile) + '.log'
+	logfile = os.path.splitext (tmpfile)[0] + '.log'
 	open (tmpfile,'w').write (latex_document)
 	ly.system ('latex %s' % tmpfile)
 	parameter_string = open (logfile).read()