From 559e202becf4df9c4b997f7d8b191b9fe9670d76 Mon Sep 17 00:00:00 2001 From: Maurizio Paglia Date: Sat, 3 Dec 2022 17:47:07 +0100 Subject: [PATCH] Remove whitespaces in hashtags --- pelican_toot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican_toot.py b/pelican_toot.py index f67f2260..562088ac 100644 --- a/pelican_toot.py +++ b/pelican_toot.py @@ -106,7 +106,7 @@ def post_updates(generator, writer): new_taglist = [] for i in taglist: new_taglist.append('#' + str(i)) - tags_to_publish = ', '.join(str(x) for x in new_taglist) + tags_to_publish = ', '.join(str(x).replace(" ", "") for x in new_taglist) mastodon_toot = title_to_publish + summary_to_publish + read_more + tags_to_publish else: mastodon_toot = title_to_publish + summary_to_publish + read_more -- 2.30.2