From patchwork Mon Jun 22 17:55:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Peter_M=C3=BCller?= X-Patchwork-Id: 3217 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 49rHBt1Jcfz3x1F for ; Mon, 22 Jun 2020 17:55:50 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 49rHBs6grpzD3; Mon, 22 Jun 2020 17:55:49 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 49rHBs47y9z2xlX; Mon, 22 Jun 2020 17:55:49 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 49rHBr3QYCz2xKj for ; Mon, 22 Jun 2020 17:55:48 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 49rHBq1Lk5zD3 for ; Mon, 22 Jun 2020 17:55:46 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1592848547; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SCWD6aOD1UXkdAqa8kRxE0LpJGaPmnipVhLKYHaq8vg=; b=I9/ZNxzdjCqIdSbBFegvWF6zSZ+B1nCJvGWUe8ybwQVgNFKKZfG3zhRPsZmPv6GyBMD67E /hlCi6vm1Q4o9HBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1592848547; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SCWD6aOD1UXkdAqa8kRxE0LpJGaPmnipVhLKYHaq8vg=; b=CKZCB80Y7CtLOVnxQqEvne95FvkQwTQIpJiNbI08eH58noy5wATyb9erYHCW2+ubbpEzaL QrPRdMnT4l9yZBHBNSnUX5KdqK20sC8Pi4LrOEZeQXok1VMF0b2Mh2/VniBUL9ll6QAYyx lSTpSc4BudFGbntui4IwtU1mFxZ9L3yc7YzeW36lz4fyHnLZ/1V4Qz4EXlBRhnDLnQuZNd r8KZ0mZUFbL7Z80wUpSt/9nL0qQpDqq1rWgFaso5g4LAzWRYH3jpJmWmFDngfDW9w82cM4 Kw1ZzmteMtTMoOXfvGF3kMVqZVQxFv63xGmbWg8nzTUxz2xhAxPjyieQ+qlm8Q== To: location@lists.ipfire.org From: =?utf-8?q?Peter_M=C3=BCller?= Subject: [PATCH] location.in: strip trailing whitespaces in database description while dumping Message-ID: Date: Mon, 22 Jun 2020 17:55:17 +0000 MIME-Version: 1.0 Content-Language: en-US X-BeenThere: location@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: location-bounces@lists.ipfire.org Sender: "Location" Authentication-Results: mail01.ipfire.org; none X-Rspamd-Queue-Id: 49rHBs6grpzD3 X-Spamd-Result: default: False [-4.27 / 11.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; BAYES_HAM(-3.00)[99.99%]; FROM_HAS_DN(0.00)[]; FORGED_SENDER_MAILLIST(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[location@lists.ipfire.org]; TO_DN_NONE(0.00)[]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[4]; NEURAL_HAM(-0.96)[-0.957]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; FROM_NEQ_ENVFROM(0.00)[peter.mueller@ipfire.org,location-bounces@lists.ipfire.org]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Server: mail01.haj.ipfire.org 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")