summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2020-08-05 06:12:09 +0000
committerSam James <sam@gentoo.org>2020-08-05 06:13:04 +0000
commite879759fba8edeffa2492a0dfcbe9c48570a684b (patch)
tree93cac65ae45618503e0bc952699535b8350ea224
parenttemplates/*: remove unnecessary strips (diff)
downloadpambase-e879759fba8edeffa2492a0dfcbe9c48570a684b.tar.gz
pambase-e879759fba8edeffa2492a0dfcbe9c48570a684b.tar.bz2
pambase-e879759fba8edeffa2492a0dfcbe9c48570a684b.zip
pambase.py: strip trailing whitespace in stackpambase-20200805
Signed-off-by: Sam James <sam@gentoo.org>
-rwxr-xr-xpambase.py2
1 files changed, 1 insertions, 1 deletions
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: