]> git.donarmstrong.com Git - lilypond.git/commitdiff
[lilypond-book] Fix `quote' + `line-width' option combination.
authorWerner Lemberg <wl@gnu.org>
Fri, 18 Sep 2009 11:54:34 +0000 (13:54 +0200)
committerWerner Lemberg <wl@gnu.org>
Fri, 18 Sep 2009 15:10:51 +0000 (17:10 +0200)
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

index dc035b4b5cffa835906a0bea4e0bc9734e048276..82238647060af470765d2cd8273d394e0a8fabf8 100644 (file)
@@ -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