wolfram|alpha: squash newlines put in returned input (#361)
oddly, wolfram|alpha's returned input string can sometimes contain newlines, especially when asking for distances between locations. previously this caused bitbot's output to get cut off, sending the remaining section to ,more
This commit is contained in:
parent
a357866480
commit
e68b773f95
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class Module(ModuleManager.BaseModule):
|
|||
for pod in page["queryresult"]["pods"]:
|
||||
text = pod["subpods"][0]["plaintext"]
|
||||
if pod["id"] == "Input" and text:
|
||||
input = text
|
||||
input = text.replace("\n", " | ")
|
||||
elif pod.get("primary", False):
|
||||
primaries.append(text)
|
||||
|
||||
|
|
Loading…
Reference in a new issue