13
0

Cleaned up messed indents (tabs vs. spaces)

This commit is contained in:
Johannes Mueller 2016-09-08 23:12:19 +02:00 committed by Robin Gareus
parent 9d927b54c1
commit cf0d06c137

View File

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