From 131fac9291d6c8cd08004e0c770542def7ee5034 Mon Sep 17 00:00:00 2001 From: garret Date: Thu, 19 Aug 2021 06:55:54 +0100 Subject: remove stuff that shouldntve been there in the first place --- append-comment.lua | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'append-comment.lua') diff --git a/append-comment.lua b/append-comment.lua index d6a7715..d308444 100644 --- a/append-comment.lua +++ b/append-comment.lua @@ -1,23 +1,7 @@ script_name = "Append Comment" script_description = "{ts do all the work pls kthxbye}" script_author = "garret" -script_version = "1.1.0" - -inspect = require 'inspect' -function log(level, msg) - if type(level) ~= "number" then - msg = level - level = 4 - end - if type(msg) == "table" then - msg = inspect(msg) - end - aegisub.log(level, tostring(msg).."\n") -end - -function clean(msg) -msg = msg:gsub("\n","\\N") -end +script_version = "1.1.1" function main(sub, sel) dialog_config= @@ -35,10 +19,9 @@ function main(sub, sel) } button, results = aegisub.dialog.display(dialog_config) if button ~= false then - msg = results.msg for _, i in ipairs(sel) do local line = sub[i] - line.text = line.text.." {"..msg.."}" + line.text = line.text.." {"..results.msg.."}" sub[i] = line end else -- cgit v1.2.3-70-g09d2