filter/source/svg/js2hxx.py | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-)
New commits: commit d7edcee5a954a34757f3ec4a694ce828a26aad81 Author: Tor Lillqvist <t...@iki.fi> Date: Fri Nov 23 15:44:23 2012 +0200 Why write Emacs and vim mode lines to a generated file one should not edit? Change-Id: I3f815bc7e825728421d5d87832f9a5ad1bcb53cc diff --git a/filter/source/svg/js2hxx.py b/filter/source/svg/js2hxx.py index 51d47dc..9c24fc4 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() - - - _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits