strictyaml icon indicating copy to clipboard operation
strictyaml copied to clipboard

Raise exception on bad list items

Open crdoconnor opened this issue 8 years ago • 0 comments

Issue raised by @Carpetsmoker in #23:

foo:
  - one
  - two
    - three

is (yaml module):

{'foo': ['one', 'two - three']}

or (strictyaml module):

YAML(OrderedDict([('foo', ['one', 'two - three'])]))

Desired outcome: some kind of exception. Maybe prevent multiline list items unless | is used.

Input and comments on this issue welcomed.

crdoconnor avatar Nov 28 '17 08:11 crdoconnor