mustangostang / spyc

A simple YAML loader/dumper class for PHP
MIT License
707 stars 207 forks source link

Custom Formatting Yaml Output #18

Closed legenderrys closed 11 years ago

legenderrys commented 11 years ago

Well my issue is a bit specific to the app i am using. I only need the document to render two things:

  1. Removing both delimiters from the rendered markdown file. "---" lines
  2. Remove the folding on objects.( basically output the key : value )
    currently with the updated spyc.php file outputs this:

    Key: Value
    Key:
        - subkey: value
        - subkey: value
    ---

    what i need it to do is this Key: Value Key: subkey: value , subkey: value

also, In the most recent update https://github.com/mustangostang/spyc/commit/e705d4ba6e9b78c6342987d5bbe562a96e52c9b9

This will only remove the prefix delimiter after changing line 244 by deleting the "---"

mustangostang commented 11 years ago

php > echo spyc_dump(array('key' => array ('val1', 'val2', 'val3')));

key:
  - val1
  - val2
  - val3
legenderrys commented 11 years ago

Where wold this line go? in terms of the spyc file? also your example should be key: val1,val2,val3