summaryrefslogtreecommitdiff
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
parenta706190989ca5c345fcbe444852f5147f1da79c8 (diff)
downloadclab-58a0a2a6d8997ba7447b1757868197f2f2c31ed2.tar.gz
Show multiline unicode strings as multiline
-rw-r--r--NEWS6
-rwxr-xr-xclab3
2 files changed, 8 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 8974271..d0f0c58 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,12 @@ NEWS for clab
clab is a command line address book program.
+Version 0.4, not yet released
+-----------------------------
+
+* Multiline values (e.g., addrsses) with Unicode are now shown as
+ multiline values, not a single-line encoded value.
+
Version 0.3, released 2016-01-08
--------------------------------
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)