Skip to content

Indention for array is wrong #20

Open
@dkellenb

Description

Tested with version 0.9.1.2

Given:

$object = new \Dallgoot\Yaml\Types\YamlObject(0);
$object->api = '1';
$object->entries = array('a' => array(array('b1' => 'b', 'b2' => 'b'), array('c1' => 'c', 'c2' => 'c')));
echo \Dallgoot\Yaml\Yaml::dump($object, 0);

Expected:

api: 1
entries: 
  a: 
    - b1: b
      b2: b
    - c1: c
      c2: c

Actual:

api: 1
entries: 
  a: 
    - 
  b1: b
  b2: b
    - 
  c1: c
  c2: c

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions