]> git.donarmstrong.com Git - lilypond.git/commitdiff
Replace Tab with 8 spaces for .py files #2
authorJames Lowe <James.Lowe@datacore.com>
Fri, 24 Jun 2011 13:25:55 +0000 (14:25 +0100)
committerJames Lowe <James.Lowe@datacore.com>
Fri, 24 Jun 2011 13:25:55 +0000 (14:25 +0100)
As per GOP Prop 1 - Pythin formatting

All files in /scripts/auxillar/ and /scripts/build/ and one in /scripts/
missed from last check-in

scripts/auxiliar/makelsr.py
scripts/build/create-weblinks-itexi.py
scripts/build/website_post.py
scripts/musicxml2ly.py

index adf8681638f72781bbb915979403ff47ad613668..8b4f3a3e320a6aedbbe6df31c581fcfe36c33b00 100755 (executable)
@@ -138,7 +138,7 @@ def escape_backslashes_in_header(snippet):
     # one backreference to group 1 (that's two 2\ ).
     new_header = re.sub("@code\{\\\\([a-zA-Z])", "@code{\\\\\\\\\\1", header)
     escaped_snippet = (snippet[:header_char_number_start] +
-       new_header + snippet[header_char_number_end:])
+        new_header + snippet[header_char_number_end:])
     return escaped_snippet
 
 def copy_ly (srcdir, name, tags):
index c48b0085b0d82588be85030fdb794bc387676f7f..d799925909c9c4933527cafe77bfb56149977c4b 100644 (file)
@@ -409,9 +409,9 @@ def make_manual_links(name, version, lang):
                 "http://lilypond.org",
                 mshort+getTrans(" (did not exist in 2.12)",lang))
             continue
-       # this is stupid and I shouldn't have bothered trying
-       # to support the 2.12 docs and it will be deleted once
-       # 2.14 is out and the website won't be visible to users
+        # this is stupid and I shouldn't have bothered trying
+        # to support the 2.12 docs and it will be deleted once
+        # 2.14 is out and the website won't be visible to users
         # until 2.14 is out.  -gp
         if (url.endswith('.html')):
             make_ver_link(macroLang("manual"+name+mshort+'Pdf',lang),
index 551da4657e5c1d0ccd22e3991810335cf07ca724..6ad2d5995e92edaa992ba3a5bc7f58cd6acb383f 100644 (file)
@@ -181,10 +181,10 @@ for file in html_files:
             # questionable
             if (not link.startswith("../doc/")):
                 if (link.endswith(".html")):
-                   langlink = addLangExt(link[:-5], lang, "html")
+                    langlink = addLangExt(link[:-5], lang, "html")
                     line = line.replace(link, langlink)
                 if (link.endswith(".pdf")):
-                   langlink = addLangExt(link[:-4], lang, "pdf")
+                    langlink = addLangExt(link[:-4], lang, "pdf")
                     line = line.replace(link, langlink)
         ### add google tracker header
         if (line.find("</head>") >= 0):
index 76d989f7a0bfdde57a5432aad1f34f1d07949676..c98da61e9f0be38c69683c16db647e895c8f39a8 100644 (file)
@@ -1782,11 +1782,11 @@ def musicxml_note_to_lily_main_event (n):
             # TODO: Handle the level-display setting for displaying brackets/parentheses
 
     elif n.get_maybe_exist_typed_child (musicxml.Unpitched):
-       # Unpitched elements have display-step and can also have
-       # display-octave.
-       unpitched = n.get_maybe_exist_typed_child (musicxml.Unpitched)
-       event = musicexp.NoteEvent ()
-       event.pitch = musicxml_unpitched_to_lily (unpitched)
+        # Unpitched elements have display-step and can also have
+        # display-octave.
+        unpitched = n.get_maybe_exist_typed_child (musicxml.Unpitched)
+        event = musicexp.NoteEvent ()
+        event.pitch = musicxml_unpitched_to_lily (unpitched)
 
     elif n.get_maybe_exist_typed_child (musicxml.Rest):
         # rests can have display-octave and display-step, which are
@@ -2489,11 +2489,11 @@ def musicxml_unpitched_to_lily (mxl_unpitched):
     p = None
     step = mxl_unpitched.get_step ()
     if step:
-       p = musicexp.Pitch ()
-       p.step = musicxml_step_to_lily (step)
+        p = musicexp.Pitch ()
+        p.step = musicxml_step_to_lily (step)
     octave = mxl_unpitched.get_octave ()
     if octave and p:
-       p.octave = octave - 4
+        p.octave = octave - 4
     return p
 
 def musicxml_restdisplay_to_lily (mxl_rest):