summaryrefslogtreecommitdiff
path: root/sphinx/quickstart.py
diff options
context:
space:
mode:
authorTakayuki Shimizukawa <shimizukawa+bitbucket@gmail.com>2012-11-30 12:46:52 +0900
committerTakayuki Shimizukawa <shimizukawa+bitbucket@gmail.com>2012-11-30 12:46:52 +0900
commitb2c7e4db172fbe08f2998fa9f477a3d16486caa9 (patch)
tree31a873a3409ac31e46c55e15fb84349cfce8fce4 /sphinx/quickstart.py
parentc1d576f049353ff98e13aa0a8fc91a5a6ff83446 (diff)
parente31620fb477769a2fc01b49d1d94b3cce25c8d36 (diff)
downloadsphinx-b2c7e4db172fbe08f2998fa9f477a3d16486caa9.tar.gz
Merged in shimizukawa/sphinx-fix-fork/#1041 (pull request #87)
Diffstat (limited to 'sphinx/quickstart.py')
-rw-r--r--sphinx/quickstart.py2
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):