diff --git a/aqt/browser.py b/aqt/browser.py index fb2ce60e8..a2756fb60 100644 --- a/aqt/browser.py +++ b/aqt/browser.py @@ -893,8 +893,10 @@ by clicking on one on the left.""")) txt += a + ":" else: txt += a - if " " in txt or "(" in txt or ")" in txt: - txt = '"%s"' % txt + for chr in "  ()": + if chr in txt: + txt = '"%s"' % txt + break items.append(txt) txt = "" txt = " ".join(items)