Fix inconsistent use of tabs and spaces in indentation.
authorChristian Hesse <mail@eworm.de>
Thu, 18 Jun 2015 12:26:06 +0000 (14:26 +0200)
committerRicardo Mones <ricardo@mones.org>
Sun, 21 Jun 2015 00:48:22 +0000 (02:48 +0200)
tools/gitlog2changelog.py

index 82fc4491ccdf7bfd348e5fce31f4a825cafef35a..216145bd1f6566ba4190fe1239293dced95663a9 100755 (executable)
@@ -49,9 +49,9 @@ for line in fin:
         message = ""
         filesFound = False
         files = ""
-       commitCmd = os.popen("git describe "+re.split(' ', line, 1)[1])
-       commit = commitCmd.read()
-       commitCmd.close()
+        commitCmd = os.popen("git describe "+re.split(' ', line, 1)[1])
+        commit = commitCmd.read()
+        commitCmd.close()
         commit = commit[0:len(commit)-1]
         continue
     # Match the author line and extract the part we want
@@ -60,7 +60,7 @@ for line in fin:
         author = re.split('<', authorList[1], 1)[0]
         author = "[" + author[0:len(author)-1]+"]"
         authorFound = True
-       continue
+        continue
     # Match the date line
     elif re.match('^Date:', line) >= 0:
         dateList = re.split(':   ', line, 1)
@@ -107,8 +107,8 @@ for line in fin:
         # author on this day
         authorLine = date + "  " + author
         if len(prevAuthorLine) != 0:
-           fout.write("\n");
-       fout.write(authorLine + " " + commit + "\n\n")
+            fout.write("\n");
+        fout.write(authorLine + " " + commit + "\n\n")
 
         # Assemble the actual commit message line(s) and limit the line length
         # to 80 characters.
@@ -128,7 +128,7 @@ for line in fin:
                 i = i+71
 
         # Write out the commit line
-       fout.write(files + "\t\t" + commit + "\n")
+        fout.write(files + "\t\t" + commit + "\n")
 
         #Now reset all the variables ready for a new commit block.
         authorFound = False