aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2021-08-19 06:55:54 +0100
committergarret <garret@airmail.cc>2021-08-19 06:55:54 +0100
commit131fac9291d6c8cd08004e0c770542def7ee5034 (patch)
tree2aa97578a92158d6a4b5d6e34db877a865b03959
parent8e33fdd70c070ca120fb6b0666851a881b3db047 (diff)
downloadaegisub-scripts-131fac9291d6c8cd08004e0c770542def7ee5034.tar.gz
aegisub-scripts-131fac9291d6c8cd08004e0c770542def7ee5034.tar.bz2
aegisub-scripts-131fac9291d6c8cd08004e0c770542def7ee5034.zip
remove stuff that shouldntve been there in the first place
-rw-r--r--append-comment.lua21
1 files changed, 2 insertions, 19 deletions
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