From 1b6aa55206be2c21c1239cb940e1fcdb024746fa Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Tue, 17 Jan 2006 23:28:26 +0000 Subject: [PATCH] Changed the way debug-output is disabled in karaskel.lua. Originally committed to SVN as r9. --- automation/include/karaskel.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/automation/include/karaskel.lua b/automation/include/karaskel.lua index 4d734efbe..369260169 100644 --- a/automation/include/karaskel.lua +++ b/automation/include/karaskel.lua @@ -68,8 +68,10 @@ -- This one is used aegisub.output_warning = aegisub.output_debug --- Comment out this line to enable debugging messages -aegisub.output_debug = function() end +-- Set the variable show_debug_output to non-nil non-false before including karaskel.lua, to get debug output +if not show_debug_output then + aegisub.output_debug = function() end +end -- Return a replacement text for a syllable function default_do_syllable(meta, styles, config, line, syl)