Yaml: Last list entry used instead of showing top level yaml items

0 votes
asked May 11, 2022 in Bug by any_can_see (160 points)
edited May 11, 2022 by any_can_see

Both of the following (A) and (B) are correct yaml and should render the same as follows:

c

A)

@startyaml
compute:
  - name: worker
    replicas: 2
@endyaml

B)

@startyaml
compute:
- name: worker
  replicas: 2
@endyaml

Unexpectedly, case B ignores the holding compute: entry, showing only the list entry as follows:

b

Edits: Fix formatting

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...