commit | bb6d6cdca9cc0eaa13a0c4bb6ce95672b46893fa | [log] [tgz] |
---|---|---|
author | koder aka kdanilov <kdanilov@mirantis.com> | Sat Jun 20 02:55:07 2015 +0300 |
committer | koder aka kdanilov <kdanilov@mirantis.com> | Sat Jun 20 02:55:07 2015 +0300 |
tree | 0c939c943f09f8a9c74b5b76d16adec1af3f3b26 | |
parent | a8253ce721475dca591e1800efbc4faa2d5d0485 [diff] [blame] |
v2 is comming
diff --git a/wally/pretty_yaml.py b/wally/pretty_yaml.py index 2cb5607..afb6375 100644 --- a/wally/pretty_yaml.py +++ b/wally/pretty_yaml.py
@@ -89,7 +89,8 @@ if len(val_res) == 1 and \ len(key_str + val_res[0]) < width and \ - not isinstance(v, dict): + not isinstance(v, dict) and \ + not val_res[0].strip().startswith('-'): res.append(key_str + val_res[0]) else: res.append(key_str)