diff --git a/qt/aqt/studydeck.py b/qt/aqt/studydeck.py index 5f7c465d6..8364b362e 100644 --- a/qt/aqt/studydeck.py +++ b/qt/aqt/studydeck.py @@ -145,6 +145,7 @@ class StudyDeck(QDialog): else: default = self.names[self.form.list.currentRow()] n = getOnlyText(_("New deck name:"), default=default) + n = n.strip() if n: did = self.mw.col.decks.id(n) # deck name may not be the same as user input. ex: ", ::