commit | 7e0f7cf603b36579f6973309cfb53ace367d05d5 | [log] [tgz] |
---|---|---|
author | koder aka kdanilov <kdanilov@mirantis.com> | Fri May 01 17:24:35 2015 +0300 |
committer | koder aka kdanilov <kdanilov@mirantis.com> | Fri May 01 17:25:10 2015 +0300 |
tree | b9c7c0dc8c9ac2a2804f89ba39f5d239a3cfb723 | |
parent | 63e9c5a321be80b83fdd1406d19003fdf017bbe7 [diff] [blame] |
release preparation
diff --git a/wally/pretty_yaml.py b/wally/pretty_yaml.py index f078ff2..ff1f3bc 100644 --- a/wally/pretty_yaml.py +++ b/wally/pretty_yaml.py
@@ -64,7 +64,9 @@ key_str = dumps_simple(k) + ": " val_res = dumpv(v, tab_sz, width - tab_sz, min_width) - if len(val_res) == 1 and len(key_str + val_res[0]) < width: + if len(val_res) == 1 and \ + len(key_str + val_res[0]) < width and \ + not isinstance(v, dict): res.append(key_str + val_res[0]) else: res.append(key_str)