summaryrefslogtreecommitdiff
path: root/clab
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-04-16 16:39:47 +0300
committerLars Wirzenius <liw@liw.fi>2016-04-16 16:39:47 +0300
commit58a0a2a6d8997ba7447b1757868197f2f2c31ed2 (patch)
treee58b3d3345114ae82d72c3caf9d1fc4e268fb8ed /clab
parenta706190989ca5c345fcbe444852f5147f1da79c8 (diff)
downloadclab-58a0a2a6d8997ba7447b1757868197f2f2c31ed2.tar.gz
Show multiline unicode strings as multiline
Diffstat (limited to 'clab')
-rwxr-xr-xclab3
1 files changed, 2 insertions, 1 deletions
diff --git a/clab b/clab
index 8d367cf..cbdf40c 100755
--- a/clab
+++ b/clab
@@ -33,7 +33,8 @@ class Entry(object):
self._dict = parsed_yaml
def as_yaml(self):
- return yaml.dump(self._dict, default_flow_style=False)
+ return yaml.dump(
+ self._dict, default_flow_style=False, allow_unicode=True)
def get_single(self, key, default):
names = self.get_subdict(key)