From 5b7a54e21cc4348fd785fecdda38d91a8174a106 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Fri, 27 Jan 2017 09:56:59 +0200 Subject: [PATCH] add jinja options at caller --- tools/export/gnuarmeclipse/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/export/gnuarmeclipse/__init__.py b/tools/export/gnuarmeclipse/__init__.py index 00f9ef4b4c..e5c599d13a 100644 --- a/tools/export/gnuarmeclipse/__init__.py +++ b/tools/export/gnuarmeclipse/__init__.py @@ -96,7 +96,7 @@ class GNUARMEclipse(Exporter): raise NotSupportedException("No linker script found.") print - print '[Create a GNU ARM Eclipse C++ managed project]' + print 'Create a GNU ARM Eclipse C++ managed project' print 'Project name: {0}'.format(self.project_name) print 'Build configurations: Debug & Release' @@ -187,9 +187,9 @@ class GNUARMEclipse(Exporter): # TODO: it would be good to have jinja stop if one of the # expected context values is not defined. - self.gen_file('gnuarmeclipse/.project.tmpl', ctx, '.project') - self.gen_file('gnuarmeclipse/.cproject.tmpl', ctx, '.cproject') - self.gen_file('gnuarmeclipse/makefile.targets.tmpl', ctx, 'makefile.targets') + self.gen_file('gnuarmeclipse/.project.tmpl', ctx, '.project', trim_blocks=True, lstrip_blocks=True) + self.gen_file('gnuarmeclipse/.cproject.tmpl', ctx, '.cproject', trim_blocks=True, lstrip_blocks=True) + self.gen_file('gnuarmeclipse/makefile.targets.tmpl', ctx, 'makefile.targets', trim_blocks=True, lstrip_blocks=True) print 'Done.'