Small update to normalize whitespace of prompts.

This commit is contained in:
Jeremy Fincher 2004-01-22 19:53:04 +00:00
parent 8f1d5bb779
commit f1ac644013
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ def expect(prompt, possibilities, recursed=False, doindent=True, default=None):
If possibilities is empty, allow anything.
"""
prompt = utils.normalizeWhitespace(prompt)
originalPrompt = prompt
if doindent:
indent = ' ' * ((len(originalPrompt)%68) + 2)