Skip to content
Snippets Groups Projects
Commit 8ee75e19 authored by Dr. Christian Tacke's avatar Dr. Christian Tacke Committed by Todd Gamblin
Browse files

Improve info variant header (#14275)

In "spack info" the Variants header currently has two blank
lines under it. That's too much. It looks like the actual
content belongs to something else.

Instead underline the headers to make things more obvious.
parent 2166a91e
Branches
Tags
No related merge requests found
...@@ -106,7 +106,9 @@ def lines(self): ...@@ -106,7 +106,9 @@ def lines(self):
yield ' None' yield ' None'
else: else:
yield ' ' + self.fmt % self.headers yield ' ' + self.fmt % self.headers
yield '\n' underline = tuple([l * "=" for l in self.column_widths])
yield ' ' + self.fmt % underline
yield ''
for k, v in sorted(self.variants.items()): for k, v in sorted(self.variants.items()):
name = textwrap.wrap( name = textwrap.wrap(
'{0} [{1}]'.format(k, self.default(v)), '{0} [{1}]'.format(k, self.default(v)),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment