diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-11-23 15:44:23 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-11-23 15:46:37 +0200 |
commit | d7edcee5a954a34757f3ec4a694ce828a26aad81 (patch) | |
tree | e0ba640f0160e7fa525240ab331edd59b1d2a89b /filter | |
parent | 44ea5d14140cccdc77a5fd8e2473804e879880df (diff) |
Why write Emacs and vim mode lines to a generated file one should not edit?
Change-Id: I3f815bc7e825728421d5d87832f9a5ad1bcb53cc
Diffstat (limited to 'filter')
-rwxr-xr-x | filter/source/svg/js2hxx.py | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/filter/source/svg/js2hxx.py b/filter/source/svg/js2hxx.py index 51d47dc30184..9c24fc422ece 100755 --- a/filter/source/svg/js2hxx.py +++ b/filter/source/svg/js2hxx.py @@ -144,25 +144,11 @@ if( not os.path.isfile( outfile_name ) ): # C++ header -header_info = """ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +header_info = '/* !! This file is auto-generated, do not edit !! */' -/* !! This file is auto-generated, do not edit !! */ -""" - -vim_setup = '/* vim:set shiftwidth=4 softtabstop=4 expandtab: */' - -outfile.write( header_info +'\n' ) -outfile.write( '\n' ) +outfile.write( header_info +'\n\n' ) for line in out_lines: outfile.write( line + '\n' ) -outfile.write( '\n' ) -outfile.write( '\n' ) -outfile.write( vim_setup + '\n' ) - outfile.close() - - - |