]> git.ipfire.org Git - location/libloc.git/blobdiff - src/python/location.in
location.in: strip trailing whitespaces in database description while dumping
[location/libloc.git] / 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")