diff options
author | Marco Cecchetti <mrcekets@gmail.com> | 2012-04-07 12:08:30 +0200 |
---|---|---|
committer | Marco Cecchetti <mrcekets@gmail.com> | 2012-06-15 10:14:58 +0200 |
commit | 6e0d7ce9410658dfe3e0ff53f2b98349b075e91e (patch) | |
tree | d24b614d3814e513587c1848242f4c0ea36b0139 /filter | |
parent | fec47cf75efc80825734ce09e991fb0efd8fcd27 (diff) |
Now debug printers are turned off automatically
Diffstat (limited to 'filter')
-rwxr-xr-x | filter/source/svg/js2hxx.py | 7 |
1 files changed, 6 insertions, 1 deletions
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 |