From af4750799cb041dc189871b7c1b7700bac7e8595 Mon Sep 17 00:00:00 2001 From: Abhijeet Kaur Date: Sun, 28 May 2017 04:03:20 +0530 Subject: [PATCH] bots: Remove unwanted spaces from 'help_message' in thesaurus bot. Remove unwanted spaces from the file contrib_bots/bots/thesaurus/thesaurus.py, these spaces were being stripped while being written to zulip console. --- contrib_bots/bots/thesaurus/thesaurus.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/contrib_bots/bots/thesaurus/thesaurus.py b/contrib_bots/bots/thesaurus/thesaurus.py index 2e3b878dcc..8960c47f01 100644 --- a/contrib_bots/bots/thesaurus/thesaurus.py +++ b/contrib_bots/bots/thesaurus/thesaurus.py @@ -25,12 +25,12 @@ def get_clean_response(m, method): return "Sorry, no result found! Please check the word." def get_thesaurus_result(original_content): - help_message = "To use this bot, start messages with either \ - @mention-bot synonym (to get the synonyms of a given word) \ - or @mention-bot antonym (to get the antonyms of a given word). \ - Phrases are not accepted so only use single words \ - to search. For example you could search '@mention-bot synonym hello' \ - or '@mention-bot antonym goodbye'." + help_message = ("To use this bot, start messages with either " + "@mention-bot synonym (to get the synonyms of a given word) " + "or @mention-bot antonym (to get the antonyms of a given word). " + "Phrases are not accepted so only use single words " + "to search. For example you could search '@mention-bot synonym hello' " + "or '@mention-bot antonym goodbye'.") query = original_content.strip().split(' ', 1) if len(query) < 2: return help_message