diff options
author | Clayton Smith <argilo@gmail.com> | 2016-12-09 06:42:40 -0500 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2016-12-10 14:39:28 -0800 |
commit | 4713574c3d783ebac5ccb6e4c19b23764b41fbfb (patch) | |
tree | 5c833740c4f9b9d9067a679d1d35e007b0ae656c /grc/core/generator/Generator.py | |
parent | 165bc3624fa237e836b6ab32fb047ab3989fe422 (diff) |
grc: Strip trailing whitespace from Python output.
Diffstat (limited to 'grc/core/generator/Generator.py')
-rw-r--r-- | grc/core/generator/Generator.py | 2 |
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 |