diff options
Diffstat (limited to 'buildstream')
-rw-r--r-- | buildstream/_frontend/widget.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/buildstream/_frontend/widget.py b/buildstream/_frontend/widget.py index 7b5ade005..f7af4c614 100644 --- a/buildstream/_frontend/widget.py +++ b/buildstream/_frontend/widget.py @@ -658,6 +658,11 @@ class LogLine(Widget): max_key_len = max(len(key), max_key_len) for key, value in values.items(): + if isinstance(value, str) and '\n' in value: + text += self.format_profile.fmt(" {}:\n".format(key)) + text += textwrap.indent(value, self.indent) + continue + text += self.format_profile.fmt(" {}: {}".format(key, ' ' * (max_key_len - len(key)))) if style_value: text += self.content_profile.fmt(str(value)) |