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 1515E8060F; Wed, 3 Aug 2022 10:27:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1659522467; bh=S+BsmoBp83R2IuU66Jon35bj7TpLFdw0dylBox2SgWk=; h=From:To:Cc:Subject:Date:From; b=H4ys+PzgUCdOOnC/Lz3bh8FvjhVT1wjWhYieWCHVgbc2UfUh8hLUxzshNB/zMOhAv e2895Qq9Jl9//Hc7P0W0GhFJO1SmyzWg4tsH0oy5w2wCBvqVokn3X0zo13fhJCyZal jqPXp6F75RFI9y4b6bq42U1DxbcaG38ouj8ZbmtdF+0O8FeUcA7/5OnsxIB9eDTh39 yHkLJIml/y/N2R2eYYlzeLVS6m85WJ5TAOyN15EZLZWNXCjYdihH706SxBTbmEP6Qq juQFt1Ifu+1vC+AyMEqu/94UCvJxFBopx/sm22x7E6QvJFECqUrEH7n+Pd+2LRo6b/ /o4cnMz30aszg== From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , GNU/Weeb Mailing List , Alviro Iskandar Setiawan Subject: [PATCH v1 0/2] Improve some utility codes Date: Wed, 3 Aug 2022 17:27:16 +0700 Message-Id: <20220803102718.1084-1-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.34.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Afternoon guys, In this series, I'm improving some utility codes in scraper/utils.py, like multiple dash `-` just like "-"*72, I think it's more practice than before. I fix a bug too while receiving email payload like ``, `®`, and more using double html.escape(). There are 2 patches in this series: - Patch 1 is to improve bottom border string template. - Patch 2 is to use double html.escape() for fix_utf8_chars() This should be works fine and tested too, thanks. Muhammad Rizki (2): Improve code for bottom border Use html.escape() for fix_utf8_chars() daemon/scraper/utils.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) base-commit: f42828bf0aa6fe23f1f5257c4a2483cb8798e89a -- Muhammad Rizki