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