]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/lilypond-book.py
Allow tests for error messages.
[lilypond.git] / scripts / lilypond-book.py
index 340c1f0e442910a7ffbf932c50675c0314da2c7f..6a8fcc1963eff910910707d0226c6addcd3dbb12 100644 (file)
@@ -144,7 +144,7 @@ def get_option_parser ():
                   dest="padding_mm",
                   help="Pad left side of music to align music inspite of uneven bar numbers. (in mm)",
                   type="float",
-                  default=-3.0)
+                  default=3.0)
     
     p.add_option ("-o", '--output', help=_ ("write output to DIR"),
                   metavar=_ ("DIR"),
@@ -1448,10 +1448,12 @@ def process_snippets (cmd, ly_snippets, texstr_snippets, png_snippets):
                             be_verbose=global_options.verbose, 
                             progress_p=1)
 
-    if global_options.format in (HTML, TEXINFO):
+    if global_options.format in (HTML, TEXINFO) and '--formats' not in cmd:
         cmd += ' --formats=png '
-    if global_options.format in (DOCBOOK):
+    elif global_options.format in (DOCBOOK) and '--formats' not in cmd:
         cmd += ' --formats=png,pdf '
+
+        
     # UGH
     # the --process=CMD switch is a bad idea
     # it is too generic for lilypond-book.