summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-06-17 14:51:26 -0700
committerGitHub <noreply@github.com>2016-06-17 14:51:26 -0700
commit4569df025e4d77d4fa6a66936c5c2da89fb4cabe (patch)
tree4e7d6a98a01e56c3f047f45fa56140ec604e0e02
parent9a8d109650a70f3e0f6754481dbcd5f203860783 (diff)
parent36decbfa69e4eda472556ad6e813e14366443de2 (diff)
downloadspack-4569df025e4d77d4fa6a66936c5c2da89fb4cabe.tar.gz
spack-4569df025e4d77d4fa6a66936c5c2da89fb4cabe.tar.bz2
spack-4569df025e4d77d4fa6a66936c5c2da89fb4cabe.tar.xz
spack-4569df025e4d77d4fa6a66936c5c2da89fb4cabe.zip
Merge pull request #1060 from mathstuf/no-break-long-words
tty: do not break long words
-rw-r--r--lib/spack/llnl/util/tty/__init__.py4
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: