Changed %70 to %68 for safety and lining up reasons.

This commit is contained in:
Jeremy Fincher 2003-08-30 04:54:35 +00:00
parent 5841566982
commit b2436f4a99
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ import textwrap
def expect(prompt, possibilities, recursed=False):
originalPrompt = prompt
indent = ' ' * ((len(originalPrompt)%70) + 2)
indent = ' ' * ((len(originalPrompt)%68) + 2)
if recursed:
print 'Sorry, that response was not an option.'
if possibilities:
@ -54,7 +54,7 @@ def expect(prompt, possibilities, recursed=False):
return s.strip()
def expectWithDefault(prompt, possibilities, default):
indent = ' ' * ((len(prompt)%70) + 2)
indent = ' ' * ((len(prompt)%68) + 2)
prompt = '%s [%s] (default: %s) ' % \
(prompt.strip(), '/'.join(possibilities), default)
if len(prompt) > 70: