mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Edit book: Fix escaping of text for regex unnecessarily escaping spaces
This commit is contained in:
parent
a3a3474c10
commit
83aaf12bd6
@ -446,7 +446,7 @@ class SearchWidget(QWidget):
|
||||
|
||||
def pre_fill(self, text):
|
||||
if self.mode in ('regex', 'function'):
|
||||
text = regex.escape(text, special_only=True)
|
||||
text = regex.escape(text, special_only=True, literal_spaces=True)
|
||||
self.find = text
|
||||
self.find_text.lineEdit().setSelection(0, len(text)+10)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user