From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from localhost.localdomain (unknown [101.128.125.226]) by gnuweeb.org (Postfix) with ESMTPSA id 160A48060F; Wed, 3 Aug 2022 10:27:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1659522469; bh=IXQViLSvywd0RG5skS4J2vGQ1QSOLxE4M/2qb0bxN2g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TyhuUoBu9USkvqAegN1vN93o/lMGjQkrzNGB6ikgmIcs2ySoxV9bmVSVvjRr9lG9e BDvScv0tN0D4OnG25ezwHecJoHVpUq/edMBxmrDdc462wNx+4WyrpJed9bjV50wcCL EzoIB8H6C60NWDTFmEuYuLNAii6YTYquDJenk3+yjTyyulGUZBnhjbRaZN0z6bkVXs uhrBy6ucL1D9CIMHS+TZpXeLzWgSNoTBPPqCGYtIb3rmgt0SzDqnm0vXhLl0R565Ir HpJjVVHDYU+yYYE/u5f32oH0waMdC+IH3o+jABk6TZrErPBr4HFdzf4/v06uN3mbkE if3f5ufDiD7ow== From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , GNU/Weeb Mailing List , Alviro Iskandar Setiawan Subject: [PATCH v1 1/2] Improve code for bottom border Date: Wed, 3 Aug 2022 17:27:17 +0700 Message-Id: <20220803102718.1084-2-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20220803102718.1084-1-kiizuha@gnuweeb.org> References: <20220803102718.1084-1-kiizuha@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Just improve code for creating bottom border for create_template() in scraper/utils.py Signed-off-by: Muhammad Rizki --- daemon/scraper/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/scraper/utils.py b/daemon/scraper/utils.py index e89255b..765468c 100644 --- a/daemon/scraper/utils.py +++ b/daemon/scraper/utils.py @@ -185,7 +185,7 @@ def create_template(thread: Message, to=None, cc=None): ret = ret[:4000] + "..." ret = fix_utf8_char(ret) - ret += "\n------------------------------------------------------------------------" + ret += f"\n{'-'*72}" return ret, files, is_patch -- Muhammad Rizki