From f063ecbea16113cc761f9088aa49aeb7d5589128 Mon Sep 17 00:00:00 2001 From: cquest Date: Thu, 8 Jun 2017 17:48:05 +0200 Subject: [PATCH] missing space --- tootbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tootbot.py b/tootbot.py index 509d972..a0fcf5e 100755 --- a/tootbot.py +++ b/tootbot.py @@ -92,10 +92,10 @@ for t in reversed(d.entries): m = re.search(r"pic.twitter.com[^ \xa0]*", c) if m != None: l = m.group(0) - c = c.replace(l,'') + c = c.replace(l,' ') # remove ellipsis - c = c.replace('\xa0…','') + c = c.replace('\xa0…',' ') if toot_media is not None: toot = mastodon_api.status_post(c, in_reply_to_id=None, media_ids=toot_media, sensitive=False, visibility='public', spoiler_text=None)