From: Han-Wen Nienhuys Date: Thu, 30 Mar 2006 01:15:08 +0000 (+0000) Subject: (Module): set default for linewidth if X-Git-Tag: release/2.9.1~10 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5660669609a4e405122eaeea645473730cf9f81c;p=lilypond.git (Module): set default for linewidth if preamble not found. --- diff --git a/ChangeLog b/ChangeLog index 9113bdc712..041f45732f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-03-30 Han-Wen Nienhuys + + * 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 * VERSION (PACKAGE_NAME): release 2.9.0. diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 4fbadf9813..ea636390c8 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -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\\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 ()