From 6e0d7ce9410658dfe3e0ff53f2b98349b075e91e Mon Sep 17 00:00:00 2001 From: Marco Cecchetti Date: Sat, 7 Apr 2012 12:08:30 +0200 Subject: Now debug printers are turned off automatically --- filter/source/svg/js2hxx.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'filter') diff --git a/filter/source/svg/js2hxx.py b/filter/source/svg/js2hxx.py index 8ea1dfdd213d..51d47dc30184 100755 --- a/filter/source/svg/js2hxx.py +++ b/filter/source/svg/js2hxx.py @@ -80,8 +80,13 @@ for line in in_lines: is_multiline_comment = True continue + # disable any debug printer + dline = line.replace( 'NAVDBG.on', 'NAVDBG.off' ) + dline = dline.replace( 'ANIMDBG.on', 'ANIMDBG.off' ) + dline = dline.replace( 'DebugPrinter.on', 'DebugPrinter.off' ) + # append a 4 spaces indentation to each line - escaped_line = ' %s' % line + escaped_line = ' %s' % dline escaped_line = escaped_line.rstrip() # no more than 2 consecutive empty lines -- cgit