diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2016-06-15 12:21:05 -0400 |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2016-06-15 12:22:35 -0400 |
commit | 36decbfa69e4eda472556ad6e813e14366443de2 (patch) | |
tree | e22b456c20c07988e08be132a92f7b4466fb1b11 /lib | |
parent | c803f7ae98dd7a1762e4eda89145e6ca50091136 (diff) | |
download | spack-36decbfa69e4eda472556ad6e813e14366443de2.tar.gz spack-36decbfa69e4eda472556ad6e813e14366443de2.tar.bz2 spack-36decbfa69e4eda472556ad6e813e14366443de2.tar.xz spack-36decbfa69e4eda472556ad6e813e14366443de2.zip |
tty: do not break long words
These "words" tend to be file paths which are best left unbroken.
Fixes #1057.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/llnl/util/tty/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/spack/llnl/util/tty/__init__.py b/lib/spack/llnl/util/tty/__init__.py index c638b113fd..ee81e11a20 100644 --- a/lib/spack/llnl/util/tty/__init__.py +++ b/lib/spack/llnl/util/tty/__init__.py @@ -64,12 +64,14 @@ def info(message, *args, **kwargs): format = kwargs.get('format', '*b') stream = kwargs.get('stream', sys.stdout) wrap = kwargs.get('wrap', False) + break_long_words = kwargs.get('break_long_words', False) cprint("@%s{==>} %s" % (format, cescape(str(message))), stream=stream) for arg in args: if wrap: lines = textwrap.wrap( - str(arg), initial_indent=indent, subsequent_indent=indent) + str(arg), initial_indent=indent, subsequent_indent=indent, + break_long_words=break_long_words) for line in lines: stream.write(line + '\n') else: |