From a0afec99384f801cafbf884b1d4b75b1e810a40a Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 2 Sep 2017 15:42:19 +1000 Subject: [PATCH] escape ideographic space --- aqt/browser.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)