![]() |
#1 |
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 439
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
[BUG] Incorrect Case with the test field
I discover a bug in the "Search and Replace" module:
When the "Character match" mode is selected, the Case is not correctly applied to the test result field (based on s_r_do_regexp() ) I'm not too sure what to do to submit the fix, so there you go: in the s_r_paint_results() source code Code:
self.test_result.setText(self.s_r_obj.sub(self.s_r_func, unicode_type(self.test_text.text()))) Code:
t = self.s_r_obj.sub(self.s_r_func, unicode_type(self.test_text.text())) if self.search_mode.currentIndex() == 0: rfunc = self.s_r_functions[unicode_type(self.replace_func.currentText())] t = rfunc(t) self.test_result.setText(t) Last edited by un_pogaz; 12-07-2020 at 01:27 PM. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,318
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom series field bug (?) | Nitro | Calibre Companion | 2 | 01-12-2016 09:40 AM |
2.x UI bug: How to dismiss dropdown menu in Tags field? | MelBr | Calibre | 10 | 10-19-2014 04:18 PM |
Please, test if your Paperwhite has this bug | Antoinekamel | Amazon Kindle | 6 | 10-20-2012 07:21 PM |
[Bug?] Field(s) in prefix/suffix | Backi | Library Management | 5 | 03-13-2012 06:22 AM |