]> git.ipfire.org Git - people/ms/libloc.git/commitdiff
location.in: strip trailing whitespaces in database description while dumping
authorPeter Müller <peter.mueller@ipfire.org>
Mon, 22 Jun 2020 17:55:17 +0000 (17:55 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 22 Jun 2020 18:40:16 +0000 (18:40 +0000)
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/location.in

index d37294da18defe3f334384e6aadba43f37e969f9..a8048047c46d5a427230c0d365dab719b90fd071 100644 (file)
@@ -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")