hello-world-bot icon indicating copy to clipboard operation
hello-world-bot copied to clipboard

Update bot.py

Open andrewgoetz opened this issue 10 years ago • 1 comments

Making it remove new line characters for more readable tweets.

andrewgoetz avatar Oct 10 '15 22:10 andrewgoetz

I did not notice this issue, thanks for pointing it out! One drawback I'm considering is that there are occasionally newlines which may be necessary for some contexts, such as this case https://twitter.com/flatlandbot/status/647898723113005056 (I like the newlines here because I decided to keep the chapter headings, and it would look weird to transition directly from the chapter title to the text of the chapter itself). Is there a way to only remove newlines which disrupt sentences?

spinecone avatar Oct 12 '15 05:10 spinecone