HomePhorge

zaml: handle multi-line map keys and array values correctly.
68dea3d3a715Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

zaml: handle multi-line map keys and array values correctly.

The ZAML encoder had some bugs when handling multi-line string values in map
keys and arrays. It also changed behaviour slightly when I modified it for
speed, causing a regression in another case that was correctly handled.

This fixes that, as well as making more robust the process of tagging
structural keys that can span multiple lines.

It also adds some tests to validate that we don't regress again.

This fixes a pre-existing bug in the encoder, as well as my regression.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU67e59573f8a1: zaml: don't use backreferences on strings
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPU68dea3d3a715: zaml: handle multi-line map keys and array values correctly. (authored by Daniel Pittman <daniel@puppetlabs.com>).Sep 19 2012, 1:44 AM