summaryrefslogtreecommitdiff
path: root/grc/core/generator/Generator.py
diff options
context:
space:
mode:
authorClayton Smith <argilo@gmail.com>2016-12-09 06:42:40 -0500
committerJohnathan Corgan <johnathan@corganlabs.com>2016-12-10 14:39:28 -0800
commit4713574c3d783ebac5ccb6e4c19b23764b41fbfb (patch)
tree5c833740c4f9b9d9067a679d1d35e007b0ae656c /grc/core/generator/Generator.py
parent165bc3624fa237e836b6ab32fb047ab3989fe422 (diff)
grc: Strip trailing whitespace from Python output.
Diffstat (limited to 'grc/core/generator/Generator.py')
-rw-r--r--grc/core/generator/Generator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/core/generator/Generator.py b/grc/core/generator/Generator.py
index 3062440814..1e43e379b9 100644
--- a/grc/core/generator/Generator.py
+++ b/grc/core/generator/Generator.py
@@ -249,7 +249,7 @@ class TopBlockGenerator(object):
}
# Build the template
t = Template(open(FLOW_GRAPH_TEMPLATE, 'r').read(), namespace)
- output.append((self.file_path, str(t)))
+ output.append((self.file_path, "\n".join(line.rstrip() for line in str(t).split("\n"))))
return output