further pepping, spelling and other such things
This commit is contained in:
parent
6cc7554cd8
commit
cd5ae1d32b
12 changed files with 52 additions and 56 deletions
|
@ -11,6 +11,6 @@ def answer(inp):
|
|||
short_url = web.try_isgd(result["Link"])
|
||||
|
||||
# we split the answer and .join() it to remove newlines/extra spaces
|
||||
answer = text.truncate_str(' '.join(result["ChosenAnswer"].split()), 80)
|
||||
answer_text = text.truncate_str(' '.join(result["ChosenAnswer"].split()), 80)
|
||||
|
||||
return u'\x02{}\x02 "{}" - {}'.format(result["Subject"], answer, short_url)
|
||||
return u'\x02{}\x02 "{}" - {}'.format(result["Subject"], answer_text, short_url)
|
||||
|
|
Reference in a new issue