Dyml icon indicating copy to clipboard operation
Dyml copied to clipboard

value with ": " inside a list causes line break?

Open Osiris-Team opened this issue 3 years ago • 2 comments

test:

list:
  - hello: there

output:

list:
  - hello: there
    -
    -
...

if the space after : is missing it wont trigger a line break:

list:
  - hello:there

Osiris-Team avatar Jan 10 '22 17:01 Osiris-Team

Load it as a Map<Object, Object>:

list:
  - Hello # (String object)
  
  - key: value # (Single map object)
  
  # (Map object with maps has values)
  - key:
      subkey: value # (Single map object)
      otherkey: value # (Single map object)
    key2:
      subkey: value # (Single map object)
      
  - key: # (Single map object with list has value)
      - value1 # (String object)
      - key: value # (Single map object)
      - value2 # (String object)
      
  - Hi # (String object)

Rubenicos avatar Jan 10 '22 17:01 Rubenicos

yeah thats smart

Osiris-Team avatar Jan 10 '22 18:01 Osiris-Team