Cleaned up messed indents (tabs vs. spaces)
authorJohannes Mueller <github@johannes-mueller.org>
Thu, 8 Sep 2016 21:12:19 +0000 (23:12 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 12 Sep 2016 10:03:16 +0000 (12:03 +0200)
scripts/export_mp4chaps.lua

index b7ab23189c820787a9be2eabca6155d9e32cd786..4adffe16ceb204531ae8bc960a1d19255f1a1a70 100644 (file)
@@ -14,17 +14,17 @@ is not created.
 This is a bit more convenient than the export option, as one does not
 have to wait for the export.
 ]],
-        license = "GPLv2"
+       license = "GPLv2"
 }
 
 function factory (unused_params) return function ()
 
-        fr = Session:frame_rate()
+       fr = Session:frame_rate()
        chaps = {}
 
-        for l in Session:locations():list():iter() do
-                name = l:name()
-                if not l:is_mark() or string.find(name, "^xrun%d*$") then
+       for l in Session:locations():list():iter() do
+               name = l:name()
+               if not l:is_mark() or string.find(name, "^xrun%d*$") then
                        goto next end
 
                t = l:start()
@@ -37,7 +37,7 @@ function factory (unused_params) return function ()
                ms = math.floor(r*1000/fr)
                table.insert(chaps, string.format("%02d:%02d:%02d.%03d %s\n", h, m, s, ms, name))
                ::next::
-        end
+       end
 
        if next(chaps) == nil then
                goto out end
@@ -49,7 +49,7 @@ function factory (unused_params) return function ()
        for i, line in ipairs(chaps) do
                file:write(line)
        end
-        file:close()
+       file:close()
 
        ::out::
 end end