diff options
Diffstat (limited to 'hostinfo')
-rw-r--r-- | hostinfo/printer.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hostinfo/printer.py b/hostinfo/printer.py index 91aee91..430b1f6 100644 --- a/hostinfo/printer.py +++ b/hostinfo/printer.py @@ -101,6 +101,11 @@ class Printer: method = getattr(self, 'print_%s' % key) method(p, value, filter_key) except AttributeError: + try: + value = value.strip().splitlines() + except: + pass + if isinstance(value, list): for v in value: p.pprint(v) |