aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-01-12 18:43:07 -0500
committerEli Schwartz <eschwartz@archlinux.org>2021-01-12 19:19:00 -0500
commitadfcf77109a2c73d88295a0fc60555b34da3eebe (patch)
tree09d7917287337632b28a8ce84828a7d16d85f7d3 /mesonbuild/interpreter.py
parent0063bd35d79e952aa964d7338869d55b91ea4a40 (diff)
downloadmeson-adfcf77109a2c73d88295a0fc60555b34da3eebe.zip
meson-adfcf77109a2c73d88295a0fc60555b34da3eebe.tar.gz
meson-adfcf77109a2c73d88295a0fc60555b34da3eebe.tar.bz2
summary: align left, not align middle
aligning along the left is, I think, what most projects want to do. Aligning along the middle looks subjectively ugly, and objectively prevents me from further indenting an element, e.g. Build information: prefix : /usr sysconfdir : /etc conf file : /etc/myprogram.conf
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r--mesonbuild/interpreter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index 9466fe4..1a946a7 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -1898,9 +1898,9 @@ class Summary:
mlog.log(' ', mlog.bold(section))
for k, v in values.items():
v, list_sep = v
- indent = self.max_key_len - len(k) + 3
+ padding = self.max_key_len - len(k)
end = ' ' if v else ''
- mlog.log(' ' * indent, k + ':', end=end)
+ mlog.log(' ' * 3, k + ' ' * padding + ':', end=end)
indent = self.max_key_len + 6
self.dump_value(v, list_sep, indent)
mlog.log('') # newline