Consider supporting compact nested block mapping in YAML

0 votes
asked Feb 3, 2021 in Wanted features by Martin (8,360 points)
edited Feb 5, 2021 by Martin

Although Plantuml supports "compact nested mapping" for simple maps:

e.g.

@startyaml
A:
  -
    B:C
    D:E
@endyaml

can be compacted as:

@startyaml
A:
  - B:C
    D:E
@endyaml

... this doesn't extend to block mapping:

e.g.

@startyaml
A:
  -
    B:
      C:D
      E:F
@endyaml

doesn't compact to:

@startyaml
A:
  - B:
      C:D
      E:F
@endyaml

But I believe that is valid YAML syntax, as found in the wild in question https://forum.plantuml.net/12946/bug-in-new-yaml-parser

1 Answer

0 votes
answered Feb 5, 2021 by Martin (8,360 points)
This is now supported, thank you!
...