From: James Lowe <James.Lowe@datacore.com>
Date: Fri, 24 Jun 2011 13:25:55 +0000 (+0100)
Subject: Replace Tab with 8 spaces for .py files #2
X-Git-Tag: release/2.15.3-1~6
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1e20e10183da39f55335641a5bf8a98693a46816;p=lilypond.git

Replace Tab with 8 spaces for .py files #2

As per GOP Prop 1 - Pythin formatting

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

diff --git a/scripts/auxiliar/makelsr.py b/scripts/auxiliar/makelsr.py
index adf8681638..8b4f3a3e32 100755
--- a/scripts/auxiliar/makelsr.py
+++ b/scripts/auxiliar/makelsr.py
@@ -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):
diff --git a/scripts/build/create-weblinks-itexi.py b/scripts/build/create-weblinks-itexi.py
index c48b0085b0..d799925909 100644
--- a/scripts/build/create-weblinks-itexi.py
+++ b/scripts/build/create-weblinks-itexi.py
@@ -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),
diff --git a/scripts/build/website_post.py b/scripts/build/website_post.py
index 551da4657e..6ad2d5995e 100644
--- a/scripts/build/website_post.py
+++ b/scripts/build/website_post.py
@@ -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):
diff --git a/scripts/musicxml2ly.py b/scripts/musicxml2ly.py
index 76d989f7a0..c98da61e9f 100644
--- a/scripts/musicxml2ly.py
+++ b/scripts/musicxml2ly.py
@@ -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):