From 3fe8ca09c3542ebd33b2a104d7924bd2aabe30e0 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Fri, 18 Sep 2009 13:54:34 +0200 Subject: [PATCH] [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. --- scripts/lilypond-book.py | 8 -------- 1 file changed, 8 deletions(-) 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 -- 2.39.2