-
Notifications
You must be signed in to change notification settings - Fork 151
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
#590 fix seems to have broken spacing behavior for end hierarchy keys with no values. In this case spaceBefore attribute becomes true and adds an empty line.
To Reproduce
#comment: This is comment in YAML file
userName: <--- this is correct
#comment: This is comment in YAML file (end hierarchy)
password:
+(extra empty line added) <---- unexpected
Expected behaviour
Keys at the end of hierarchy should be parsed without adding extra line, maintaining the original spacing behavior.
Additional context
I traced this issue and found that if we remove
indicator !== 'seq-item-ind'
which was added as a part of #590 fix then extra line issue was resolved in my use case.
Please provide your thoughts on this
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working