]> git.donarmstrong.com Git - lilypond.git/commitdiff
Typos and thinkos after tests
authorJohn Mandereau <john.mandereau@gmail.com>
Fri, 29 Feb 2008 21:14:23 +0000 (22:14 +0100)
committerJohn Mandereau <john.mandereau@gmail.com>
Fri, 29 Feb 2008 21:14:23 +0000 (22:14 +0100)
Documentation/user/lilypond-book.itely
scripts/lilypond-book.py

index ed457215df72945a4d88070b84b3991532430135..cb796ef2af8bef5713f25c3f4cbc2fb5e6653ee4 100644 (file)
@@ -658,7 +658,7 @@ will be printed with a verbatim block like
 
 @item addversion
 (Only for Texinfo output.)  Prepend line @code{\version
-@@w{"@@version@{@}"}} to @code{verbatim} output.
+@@w@{"@@version@{@}"@}} to @code{verbatim} output.
 
 @item texidoc
 (Only for Texinfo output.)  If @command{lilypond} is called with the
index 0da7ce48289860bde8d4b0905402daa72f60f57c..7fe8210a9d6b312fb30074aba22db21e17c7e52e 100644 (file)
@@ -515,7 +515,8 @@ simple_options = [
     VERBATIM,
     FONTLOAD,
     FILENAME,
-    ALT
+    ALT,
+    ADDVERSION
 ]
 
 ly_options = {
@@ -680,12 +681,14 @@ output = {
 ''',
 
         VERBATIM: r'''@exampleindent 0
-@verbatim
+%(version)s@verbatim
 %(verb)s@end verbatim
 ''',
 
-        ADDVERSION: r'''\version @w{"@version{}"}
-%(verb)s'''
+        ADDVERSION: r'''@example
+\version @w{"@version{}"}
+@end example
+'''
     },
 }
 
@@ -1263,12 +1266,11 @@ class Lilypond_snippet (Snippet):
 
         substr = ''
         if VERBATIM in self.option_dict:
-            verb = self.verb_ly ()
+            version = ''
             if ADDVERSION in self.option_dict:
-                verb = output[TEXINFO][ADDVERSION] % vars ()
-            substr += output[TEXINFO][VERBATIM] % vars ()
-            if not QUOTE in self.option_dict:
-                substr = output[TEXINFO][NOQUOTE] % {'str':substr}
+                version = output[TEXINFO][ADDVERSION]
+            verb = self.verb_ly ()
+            substr = output[TEXINFO][VERBATIM] % vars ()
         substr += self.output_info ()
         if LILYQUOTE in self.option_dict:
             substr = output[TEXINFO][QUOTE] % {'str':substr}