Commit 124e494b authored by Lysander Trischler's avatar Lysander Trischler

Replace tabs in twts by space

parent 94966273
......@@ -54,12 +54,14 @@ class TwtxtManager:
self.max_author_nick_width = max(self.max_author_nick_width, len(tweets[0].source.nick))
all_tweets.extend(tweets)
for twt in tweets:
twt.hash = twtxthash.create_hash(twt)
twt.old_hash = twtxthash.create_old_hash(twt)
if "\t" in twt.text:
twt.text = twt.text.replace("\t", " ")
twt.tokens = list(twtxtparser.parse_twt_text(twt.text))
twt.subject = next((token.hash for token in twt.tokens
if isinstance(token, twtxtparser.SubjectHash)), None)
replies_by_subject[twt.subject].append(twt)
twt.hash = twtxthash.create_hash(twt)
twt.old_hash = twtxthash.create_old_hash(twt)
known_tweet_hashes.add(twt.hash)
known_tweet_hashes.add(twt.old_hash)
twt.replies = []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment