yaml icon indicating copy to clipboard operation
yaml copied to clipboard

Indention for array is wrong

Open dkellenb opened this issue 10 months ago • 1 comments

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

dkellenb avatar Apr 05 '24 15:04 dkellenb