From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: location@lists.ipfire.org Subject: [PATCH] location.in: strip trailing whitespaces in database description while dumping Date: Mon, 22 Jun 2020 17:55:17 +0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6597555453433518803==" List-Id: --===============6597555453433518803== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Signed-off-by: Peter Müller --- src/python/location.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/python/location.in b/src/python/location.in index d37294d..a804804 100644 --- a/src/python/location.in +++ b/src/python/location.in @@ -321,7 +321,8 @@ class CLI(object): if db.description: for line in db.description.splitlines(): - f.write("# %s\n" % line) + line = "# %s" % line + f.write("%s\n" % line.rstrip()) f.write("#\n") -- 2.26.2 --===============6597555453433518803==--