From cfbae90fba1a1d8e46b135be10ee52af1c840683 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20M=C3=BCller?= Date: Mon, 22 Jun 2020 17:55:17 +0000 Subject: [PATCH] location.in: strip trailing whitespaces in database description while dumping MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Müller Signed-off-by: Michael Tremer --- 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.47.3