mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Merge pull request #162 from luoliyan/master
Handle invalid delimiters more gracefully
This commit is contained in:
commit
41dc837712
1 changed files with 6 additions and 1 deletions
|
@ -112,6 +112,11 @@ you can enter it here. Use \\t to represent tab."""),
|
|||
self, help="importing") or "\t"
|
||||
str = str.replace("\\t", "\t")
|
||||
str = str.encode("ascii")
|
||||
if len(str) > 1:
|
||||
showWarning(_(
|
||||
"Multi-character separators are not supported. "
|
||||
"Please enter one character only."))
|
||||
return
|
||||
self.hideMapping()
|
||||
def updateDelim():
|
||||
self.importer.delimiter = str
|
||||
|
|
Loading…
Reference in a new issue