]> git.donarmstrong.com Git - lilypond.git/blobdiff - python/book_latex.py
Add a regression test for 1062.
[lilypond.git] / python / book_latex.py
index ec4ce93156565a0a7af613d1d295dda2ef2981bf..1faa57639bda653ec807c9844232b672c9bd762a 100644 (file)
@@ -6,6 +6,11 @@ import os
 import book_base as BookBase
 from book_snippets import *
 import lilylib as ly
+global _;_=ly._
+
+progress = ly.progress
+warning = ly.warning
+error = ly.error
 
 # Recognize special sequences in the input.
 #
@@ -255,8 +260,7 @@ class BookLatexOutputFormat (BookBase.BookOutputFormat):
             str += "".ljust (breaks, "\n").replace ("\n","%\n")
 
         if QUOTE in snippet.option_dict:
-            rep['str'] = str
-            str = self.output[QUOTE] % rep
+            str = self.output[QUOTE] % {'str': str}
         return str