run_template_code and run_code_template is not the same thing...
Originally committed to SVN as r1238.
This commit is contained in:
parent
a2ef89c752
commit
f3c9b2ca79
1 changed files with 2 additions and 2 deletions
|
@ -301,7 +301,7 @@ function apply_templates(meta, styles, subs, templates)
|
||||||
-- run all run-once code snippets
|
-- run all run-once code snippets
|
||||||
for k, t in pairs(templates.once) do
|
for k, t in pairs(templates.once) do
|
||||||
assert(t.code, "WTF, a 'once' template without code?")
|
assert(t.code, "WTF, a 'once' template without code?")
|
||||||
run_template_code(t, tenv)
|
run_code_template(t, tenv)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- start processing lines
|
-- start processing lines
|
||||||
|
@ -429,7 +429,7 @@ function apply_line(meta, styles, subs, line, templates, tenv)
|
||||||
for t in matching_templates(templates.line, line) do
|
for t in matching_templates(templates.line, line) do
|
||||||
if t.code then
|
if t.code then
|
||||||
aegisub.debug.out(5, "Code template, %s\n", t.code)
|
aegisub.debug.out(5, "Code template, %s\n", t.code)
|
||||||
run_template_code(t, tenv)
|
run_code_template(t, tenv)
|
||||||
else
|
else
|
||||||
aegisub.debug.out(5, "Line template, pre = '%s', t = '%s'\n", t.pre, t.t)
|
aegisub.debug.out(5, "Line template, pre = '%s', t = '%s'\n", t.pre, t.t)
|
||||||
applied_templates = true
|
applied_templates = true
|
||||||
|
|
Loading…
Reference in a new issue