From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A943B138359 for ; Wed, 5 Aug 2020 06:13:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9905CE0825; Wed, 5 Aug 2020 06:13:15 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7D3DAE0825 for ; Wed, 5 Aug 2020 06:13:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 98EBA34F0A3 for ; Wed, 5 Aug 2020 06:13:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 517FB275 for ; Wed, 5 Aug 2020 06:13:13 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1596607984.e879759fba8edeffa2492a0dfcbe9c48570a684b.sam@gentoo> Subject: [gentoo-commits] proj/pambase:master commit in: / X-VCS-Repository: proj/pambase X-VCS-Files: pambase.py X-VCS-Directories: / X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: e879759fba8edeffa2492a0dfcbe9c48570a684b X-VCS-Branch: master Date: Wed, 5 Aug 2020 06:13:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1497e4a3-e8c6-41cc-a16d-02f51d493354 X-Archives-Hash: 214fda05de4ebadd71d27365038e22b7 commit: e879759fba8edeffa2492a0dfcbe9c48570a684b Author: Sam James gentoo org> AuthorDate: Wed Aug 5 06:12:09 2020 +0000 Commit: Sam James gentoo 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 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: