From 857733c8e907b339e41a010252b577f161d40d20 Mon Sep 17 00:00:00 2001 From: Henrik Enggaard Hansen Date: Mon, 13 Mar 2017 15:52:27 +0100 Subject: [PATCH] Use the same formatting for the browser and card history --- aqt/addcards.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aqt/addcards.py b/aqt/addcards.py index c48ad0c63..be156acc7 100644 --- a/aqt/addcards.py +++ b/aqt/addcards.py @@ -9,7 +9,7 @@ from aqt.utils import saveGeom, restoreGeom, showWarning, askUser, shortcut, \ tooltip, openHelp, addCloseShortcut, downArrow from anki.sound import clearAudioQueue from anki.hooks import addHook, remHook, runHook -from anki.utils import stripHTMLMedia, isMac +from anki.utils import stripHTMLMedia, fmtQA, isMac import aqt.editor, aqt.modelchooser, aqt.deckchooser class AddCards(QDialog): @@ -145,7 +145,7 @@ class AddCards(QDialog): for nid in self.history: if self.mw.col.findNotes("nid:%s" % nid): fields = self.mw.col.getNote(nid).fields - txt = stripHTMLMedia(", ".join(fields)) + txt = fmtQA(", ".join(fields)) if len(txt) > 30: txt = txt[:30] + "..." a = m.addAction(_("Edit \"%s\"") % txt)