Merge pull request #826 from abdnh/write-dupes-fix
Make dupe search operate on non-stripped text
This commit is contained in:
commit
ed3583b6fe
@ -500,9 +500,7 @@ class Editor:
|
||||
self.web.eval("setBackgrounds(%s);" % json.dumps(cols))
|
||||
|
||||
def showDupes(self):
|
||||
contents = html.escape(
|
||||
stripHTMLMedia(self.note.fields[0]), quote=False
|
||||
).replace('"', r"\"")
|
||||
contents = self.note.fields[0].replace('"', r"\"")
|
||||
browser = aqt.dialogs.open("Browser", self.mw)
|
||||
browser.form.searchEdit.lineEdit().setText(
|
||||
'"dupe:%s,%s"' % (self.note.model()["id"], contents)
|
||||
|
@ -432,7 +432,7 @@ impl SqlWriter<'_> {
|
||||
ntid, csum
|
||||
)
|
||||
.unwrap();
|
||||
self.args.push(text.to_string());
|
||||
self.args.push(text_nohtml.to_string());
|
||||
}
|
||||
|
||||
fn write_added(&mut self, days: u32) -> Result<()> {
|
||||
|
Loading…
Reference in New Issue
Block a user