]> git.donarmstrong.com Git - lilypond.git/commitdiff
(Module): set default for linewidth if
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 30 Mar 2006 01:15:08 +0000 (01:15 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 30 Mar 2006 01:15:08 +0000 (01:15 +0000)
preamble not found.

ChangeLog
scripts/lilypond-book.py

index 9113bdc712bfe76677f6f341a6a3ded9943241eb..041f45732f51d6eef92fe02fb97778a71f96f4b0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-03-30  Han-Wen Nienhuys  <hanwen@lilypond.org>
+
+       * lily/ttf.cc (print_trailer): don't always use uXXX glyphname.
+
+       * scripts/lilypond-book.py (Module): set default for linewidth if
+       preamble not found.
+
 2006-03-29  Han-Wen Nienhuys  <hanwen@lilypond.org>
 
        * VERSION (PACKAGE_NAME): release 2.9.0.
index 4fbadf98134ed0154b21bc4d2fd840178162f68f..ea636390c8e50208a13128b18e0172233744b5fb 100644 (file)
@@ -1410,6 +1410,12 @@ LATEX_INSPECTION_DOCUMENT = r'''
 # Do we need anything else besides `textwidth'?
 def get_latex_textwidth (source):
        m = re.search (r'''(?P<preamble>\\begin\s*{document})''', source)
+       if m == None:
+               warning (_ ("Can't find \\begin{document} in LaTeX document"))
+               
+               ## what's a sensible default?
+               return 550.0
+       
        preamble = source[:m.start (0)]
        latex_document = LATEX_INSPECTION_DOCUMENT % vars ()