summaryrefslogtreecommitdiff
path: root/morphlib/yamlparse.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2014-07-30 12:30:30 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2014-07-30 12:43:43 +0000
commit391d8cec9ae74a5f1d3b4101f4542a81f63d9860 (patch)
treebe34cff00a09e3baba0e0045ebaa7004faa7781d /morphlib/yamlparse.py
parentf860d3e7b0e14b01b31d4f3d63a8c37572cd9fdc (diff)
downloadmorph-391d8cec9ae74a5f1d3b4101f4542a81f63d9860.tar.gz
Dump multi-line strings in yaml documents in '|' formbaserock/richardmaw/bugfix/yaml-multi-line-dump
This prevents the description fields of morphologies being mangled. This does not preserve the original formatting, so much as happen to dump it in the same way we wrote it, but given we chose that form because we think it looks the nicest, that's not a problem.
Diffstat (limited to 'morphlib/yamlparse.py')
-rw-r--r--morphlib/yamlparse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/yamlparse.py b/morphlib/yamlparse.py
index 726b4181..6f139304 100644
--- a/morphlib/yamlparse.py
+++ b/morphlib/yamlparse.py
@@ -29,7 +29,7 @@ if morphlib.got_yaml: # pragma: no cover
def dump(*args, **kwargs):
if 'default_flow_style' not in kwargs:
kwargs['default_flow_style'] = False
- return yaml.dump(Dumper=morphlib.morphloader.OrderedDumper,
+ return yaml.dump(Dumper=morphlib.morphloader.MorphologyDumper,
*args, **kwargs)
else: # pragma: no cover