From 12cd3521e508bbb10269dc6f4887c5d5c4dbacbf Mon Sep 17 00:00:00 2001 From: Lasse Vang Gravesen Date: Wed, 18 Jul 2012 18:39:51 +0200 Subject: [PATCH] Problem with urbandict plugin fixed by replacing \r\n with a space --- plugins/dictionary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dictionary.py b/plugins/dictionary.py index abf2086..d593085 100755 --- a/plugins/dictionary.py +++ b/plugins/dictionary.py @@ -15,7 +15,7 @@ def urban(inp): if page['result_type'] == 'no_results': return 'not found.' - out = defs[0]['word'] + ': ' + defs[0]['definition'] + out = defs[0]['word'] + ': ' + defs[0]['definition'].replace('\r\n',' ') if len(out) > 400: out = out[:out.rfind(' ', 0, 400)] + '...'