Skip to content

Better control of output style for mapping and sequence nodes #149

@embray

Description

@embray

#148 introduces some hacks to allow setting whether a container node should be output in block style or flow style (because libfyaml does not currently allow setting the node style). Furthermore the intention was to allow controlling whether or not the node was written on one line as explained here: #148 (comment)

Due to a bug in libfyaml 0.9.2 which I was testing against locally, this happened to work exactly as I wanted, but it turns out there's officially no way to preserve how a node was styled exactly in the way it was originally parsed--perfect round-tripping is not possible here. This is a limitation in libfyaml that can't be easily worked around, though I would still consider this a bug for libasdf.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions