From 577c30776663bc0253256e3d7bc416ff3f09e4c5 Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Tue, 3 Jan 2017 13:22:44 -0700 Subject: scripts: Remove blank lines from end of helper files Change-Id: Ie972f2d8b6bca633fbfb4745f29eab183cde7acb --- scripts/helper_file_generator.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') diff --git a/scripts/helper_file_generator.py b/scripts/helper_file_generator.py index 7746c29c..6b271038 100644 --- a/scripts/helper_file_generator.py +++ b/scripts/helper_file_generator.py @@ -134,6 +134,9 @@ class HelperFileOutputGenerator(OutputGenerator): def endFile(self): dest_file = '' dest_file += self.OutputDestFile() + # Remove blank lines at EOF + if dest_file.endswith('\n'): + dest_file = dest_file[:-1] write(dest_file, file=self.outFile); # Finish processing in superclass OutputGenerator.endFile(self) -- cgit v1.2.3