Fixed stupid possible bug in utils.lua. (Forgot a local keyword in copy_line.)

Finally wrote some documentation for karaskel.lua and karaskel-adv.lua.

Originally committed to SVN as r28.
This commit is contained in:
Niels Martin Hansen 2006-01-26 03:02:06 +00:00
parent 645aae6e29
commit c6fb2bdf42
4 changed files with 3 additions and 3 deletions

View file

@ -33,8 +33,6 @@
-- It automatically includes and re-setups karaskel.lua, so you should not include that yourself!
include("karaskel.lua")
-- Also include utils.lua, since you'll most likely need to use the copy_line function
include("utils.lua")
-- The interface here has been greatly simplified, there is only one function to override, do_syllable
-- The format for that one has changed.

View file

@ -65,6 +65,8 @@
-- start_time - Start time of the syllable, in miliseconds, relative to the start of the line
-- end_time - End time of the syllable, similar to start_time
-- Since utils.lua is always useful, include it here
include("utils.lua")
-- This one is used
aegisub.output_warning = aegisub.output_debug

View file

@ -30,7 +30,7 @@
-- Variables with tables only hold references to the actual tables
-- Since a line is a table, a line needs to be copied, otherwise things break in bad ways
function copy_line(input)
output = {}
local output = {}
output.kind = input.kind
if input.kind == "scomment" then
output.text = input.text

Binary file not shown.