mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
quickstart: do_prompt() allows empty string as default value
This commit is contained in:
parent
634c99cc5e
commit
3573150268
@ -142,7 +142,7 @@ def term_decode(text):
|
||||
|
||||
def do_prompt(d, key, text, default=None, validator=nonempty):
|
||||
while True:
|
||||
if default:
|
||||
if default is not None:
|
||||
prompt = PROMPT_PREFIX + '%s [%s]: ' % (text, default)
|
||||
else:
|
||||
prompt = PROMPT_PREFIX + text + ': '
|
||||
|
Loading…
Reference in New Issue
Block a user