Strip spaces

This commit is contained in:
Luke Rogers 2014-04-02 20:03:14 +13:00
parent 5ca45fea4b
commit 1062e69e56
2 changed files with 2 additions and 66 deletions

View file

@ -76,7 +76,7 @@ def recipe(inp):
except ParseError as e:
return "Could not parse recipe: {}".format(e)
name = data["name"]
name = data["name"].strip()
return u"Try eating \x02{}!\x02 - {}".format(name, web.try_isgd(url))
@ -94,7 +94,7 @@ def wtfisfordinner(inp):
except ParseError as e:
return "Could not parse recipe: {}".format(e)
name = data["name"].upper()
name = data["name"].strip().upper()
text = random.choice(phrases).format(name)
if censor: