aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMark Lobodzinski <mark@lunarg.com>2017-01-03 13:22:44 -0700
committerMark Lobodzinski <mark@lunarg.com>2017-01-11 07:26:37 -0700
commit577c30776663bc0253256e3d7bc416ff3f09e4c5 (patch)
tree6e7fbf2f8052899e6846f9dbba57b10db83afa84 /scripts
parentcb7f05458e871f8f2453520eff8de7a060170725 (diff)
downloadusermoji-577c30776663bc0253256e3d7bc416ff3f09e4c5.tar.xz
scripts: Remove blank lines from end of helper files
Change-Id: Ie972f2d8b6bca633fbfb4745f29eab183cde7acb
Diffstat (limited to 'scripts')
-rw-r--r--scripts/helper_file_generator.py3
1 files changed, 3 insertions, 0 deletions
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)