From c9f62e161ace09725c753598c0d5f9e4497aa343 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Thu, 10 Oct 2024 11:35:26 +0100 Subject: [PATCH] Cosmetic Enhancement 2084133: Holding Ctrl and clicking twice adds 2 spaces to the search in the search bar. In fact, every "not" was preceded with an extra space, which had no effect on the parsing of the search string. --- src/calibre/gui2/tag_browser/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tag_browser/model.py b/src/calibre/gui2/tag_browser/model.py index 50073f6576..2c2f68e802 100644 --- a/src/calibre/gui2/tag_browser/model.py +++ b/src/calibre/gui2/tag_browser/model.py @@ -1847,7 +1847,7 @@ class TagsModel(QAbstractItemModel): # {{{ if tag.state != TAG_SEARCH_STATES['clear']: if tag.state == TAG_SEARCH_STATES['mark_minus'] or \ tag.state == TAG_SEARCH_STATES['mark_minusminus']: - prefix = ' not ' + prefix = 'not ' else: prefix = '' if node.is_gst: