oubli du .strip()
This commit is contained in:
parent
a6cde8064a
commit
97553ab91f
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ def prompt(prompt, defaut=u'', couleur='gras'):
|
|||
while True:
|
||||
try:
|
||||
v = raw_input(prompt_s.encode(encoding))
|
||||
v = cranslib.cransstrings.decode_dammit(v)
|
||||
v = cranslib.cransstrings.decode_dammit(v).strip()
|
||||
if not v:
|
||||
v = defaut
|
||||
return v
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue