Skip to content

Commit

Permalink
Don't NFC-normalize field data
Browse files Browse the repository at this point in the history
  • Loading branch information
mvf committed Dec 6, 2019
1 parent a62d896 commit 199b52c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion anki/importing/noteimp.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ def importNotes(self, notes):
n.fields[c] = n.fields[c].strip()
if not self.allowHTML:
n.fields[c] = n.fields[c].replace("\n", "<br>")
n.fields[c] = unicodedata.normalize("NFC", n.fields[c])
n.tags = [unicodedata.normalize("NFC", t) for t in n.tags]
fld0 = n.fields[fld0idx]
csum = fieldChecksum(fld0)
Expand Down
1 change: 0 additions & 1 deletion aqt/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,6 @@ def _onSearchActivated(self):

# grab search text and normalize
txt = self.form.searchEdit.lineEdit().text()
txt = unicodedata.normalize("NFC", txt)

# update history
sh = self.mw.pm.profile['searchHistory']
Expand Down
1 change: 0 additions & 1 deletion aqt/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ def onBridgeCmd(self, cmd):
print("ignored late blur")
return
txt = urllib.parse.unquote(txt)
txt = unicodedata.normalize("NFC", txt)
txt = self.mungeHTML(txt)
# misbehaving apps may include a null byte in the text
txt = txt.replace("\x00", "")
Expand Down

0 comments on commit 199b52c

Please sign in to comment.