mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-12 16:32:10 -05:00
Fix #3364: sphinx-quickstart prompts overflow on Console with 80 chars width
This commit is contained in:
1 parent
14a864a637
commit
678cc3d503
2 files changed
+7
-3
No files matched your search
@@ -17,6 +17,7 @@ Bugs fixed
|
|||||||
|
|
||||||
* #3370: the caption of code-block is not picked up for translation
|
* #3370: the caption of code-block is not picked up for translation
|
||||||
* LaTeX: :confval:`release` is not escaped (refs: #3362)
|
* LaTeX: :confval:`release` is not escaped (refs: #3362)
|
||||||
|
* #3364: sphinx-quickstart prompts overflow on Console with 80 chars width
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
--------
|
--------
|
||||||
|
|||||||
@@ -43,9 +43,6 @@ from sphinx.util import texescape
|
|||||||
|
|
||||||
TERM_ENCODING = getattr(sys.stdin, 'encoding', None)
|
TERM_ENCODING = getattr(sys.stdin, 'encoding', None)
|
||||||
|
|
||||||
# function to get input from terminal -- overridden by the test suite
|
|
||||||
term_input = input
|
|
||||||
|
|
||||||
DEFAULT_VALUE = {
|
DEFAULT_VALUE = {
|
||||||
'path': '.',
|
'path': '.',
|
||||||
'sep': False,
|
'sep': False,
|
||||||
@@ -73,6 +70,12 @@ def mkdir_p(dir):
|
|||||||
os.makedirs(dir)
|
os.makedirs(dir)
|
||||||
|
|
||||||
|
|
||||||
|
# function to get input from terminal -- overridden by the test suite
|
||||||
|
def term_input(prompt):
|
||||||
|
sys.stdout.write(prompt)
|
||||||
|
return input('')
|
||||||
|
|
||||||
|
|
||||||
class ValidationError(Exception):
|
class ValidationError(Exception):
|
||||||
"""Raised for validation errors."""
|
"""Raised for validation errors."""
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user