summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/cmd/info.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/spack/spack/cmd/info.py b/lib/spack/spack/cmd/info.py
index 6b316f3cc4..441223b738 100644
--- a/lib/spack/spack/cmd/info.py
+++ b/lib/spack/spack/cmd/info.py
@@ -121,10 +121,12 @@ class VariantFormatter(object):
)
allowed = v.allowed_values.replace('True, False', 'on, off')
allowed = textwrap.wrap(allowed, width=self.column_widths[1])
- description = textwrap.wrap(
- v.description,
- width=self.column_widths[2]
- )
+ description = []
+ for d_line in v.description.split('\n'):
+ description += textwrap.wrap(
+ d_line,
+ width=self.column_widths[2]
+ )
for t in zip_longest(
name, allowed, description, fillvalue=''
):