From: Werner Lemberg Date: Fri, 18 Sep 2009 11:54:34 +0000 (+0200) Subject: [lilypond-book] Fix `quote' + `line-width' option combination. X-Git-Tag: release/2.13.4-1~18 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=3fe8ca09c3542ebd33b2a104d7924bd2aabe30e0;p=lilypond.git [lilypond-book] Fix `quote' + `line-width' option combination. The previous code converted a snippet starting with \begin[quote]{lilypond} ... into this LaTeX code \begin{quotation} {% \parindent 0pt ... while \begin[quote, line-width=...]{lilypond} ... was converted to \parindent 0pt ... omitting the `quotation' environment. This was neither documented nor expected behaviour. --- diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index dc035b4b5c..8223864706 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -1116,14 +1116,6 @@ class LilypondSnippet (Snippet): if not INDENT in self.option_dict: self.option_dict[INDENT] = '0\\mm' - # The QUOTE pattern from ly_options only emits the `line-width' - # keyword. - if has_line_width and QUOTE in self.option_dict: - if no_line_width_value: - del self.option_dict[LINE_WIDTH] - else: - del self.option_dict[QUOTE] - def compose_ly (self, code): if FRAGMENT in self.option_dict: body = FRAGMENT_LY