Minor beauty patch

This commit is contained in:
Miroslav Stampar 2014-04-10 21:18:04 +02:00
parent 0d1690de61
commit 096ce7881e

View File

@ -201,7 +201,7 @@ class Agent(object):
else: else:
query = kb.injection.prefix or prefix or "" query = kb.injection.prefix or prefix or ""
if not (expression and expression[0] == ";"): if not (expression and expression[0] == ';') and not (query and query[-1] in ('(', ')') and expression and expression[0] in ('(', ')')):
query += " " query += " "
query = "%s%s" % (query, expression) query = "%s%s" % (query, expression)