13
0

Lua script-list: consolidate whitespace in description

This commit is contained in:
Robin Gareus 2020-04-24 06:05:22 +02:00
parent f72b05d3a5
commit 7d33c1688b
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -17,7 +17,11 @@ end
function list_script_types (h, t)
function ardour (v)
if v['type'] == t then
print ("<dt>" .. v['name'] .. "<dt><dd>" .. v['description'] .. "</dd>")
local desc = string.gsub (v['description'], "\n", " ")
desc = string.gsub (desc, "\t", " ")
desc = string.gsub (desc, " *", " ")
desc = string.gsub (desc, " $", "")
print ("<dt>" .. v['name'] .. "<dt><dd>" .. desc .. "</dd>")
end
end
@ -30,7 +34,7 @@ function list_script_types (h, t)
end
list_script_types ("DSP Plugins", "dsp")
list_script_types ("Session Wide Realtime", "session")
list_script_types ("Editor Actions", "EditorAction")
list_script_types ("Editor Callbacks", "EditorHook")
list_script_types ("Session Wide Realtime", "session")
list_script_types ("Session Templates", "SessionInit")