diff options
| author | Takayuki Shimizukawa <shimizukawa+bitbucket@gmail.com> | 2012-11-30 12:46:52 +0900 |
|---|---|---|
| committer | Takayuki Shimizukawa <shimizukawa+bitbucket@gmail.com> | 2012-11-30 12:46:52 +0900 |
| commit | b2c7e4db172fbe08f2998fa9f477a3d16486caa9 (patch) | |
| tree | 31a873a3409ac31e46c55e15fb84349cfce8fce4 /sphinx/quickstart.py | |
| parent | c1d576f049353ff98e13aa0a8fc91a5a6ff83446 (diff) | |
| parent | e31620fb477769a2fc01b49d1d94b3cce25c8d36 (diff) | |
| download | sphinx-b2c7e4db172fbe08f2998fa9f477a3d16486caa9.tar.gz | |
Merged in shimizukawa/sphinx-fix-fork/#1041 (pull request #87)
Diffstat (limited to 'sphinx/quickstart.py')
| -rw-r--r-- | sphinx/quickstart.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/quickstart.py b/sphinx/quickstart.py index 2bba4459..64c2e23c 100644 --- a/sphinx/quickstart.py +++ b/sphinx/quickstart.py @@ -824,7 +824,7 @@ def do_prompt(d, key, text, default=None, validator=nonempty): prompt = purple(PROMPT_PREFIX + '%s [%s]: ' % (text, default)) else: prompt = purple(PROMPT_PREFIX + text + ': ') - x = term_input(prompt) + x = term_input(prompt).strip() if default and not x: x = default if not isinstance(x, unicode): |
