From: John Mandereau Date: Fri, 29 Feb 2008 21:14:23 +0000 (+0100) Subject: Typos and thinkos after tests X-Git-Tag: release/2.11.42-1~7^2~15^2~6 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=13090d9247c2cad7f436ebfde69a39144209851d;p=lilypond.git Typos and thinkos after tests --- diff --git a/Documentation/user/lilypond-book.itely b/Documentation/user/lilypond-book.itely index ed457215df..cb796ef2af 100644 --- a/Documentation/user/lilypond-book.itely +++ b/Documentation/user/lilypond-book.itely @@ -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 diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 0da7ce4828..7fe8210a9d 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -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}