commit: e879759fba8edeffa2492a0dfcbe9c48570a684b
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 5 06:12:09 2020 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Aug 5 06:13:04 2020 +0000
URL: https://gitweb.gentoo.org/proj/pambase.git/commit/?id=e879759f
pambase.py: strip trailing whitespace in stack
Signed-off-by: Sam James <sam <AT> gentoo.org>
pambase.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pambase.py b/pambase.py
index 9765778..8f04870 100755
--- a/pambase.py
+++ b/pambase.py
@@ -89,7 +89,7 @@ def parse_templates(processed_args):
# Strip all intermediate lines to not worry about
appeasing Jinja
lines = rendered_template.split("\n")
- lines = [line for line in lines if line]
+ lines = [line.strip() for line in lines if line]
rendered_template = "\n".join(lines)
if rendered_template: