You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect clear_fmt to discard all formatting, including the representation of value (as described by the documentation of the method itself). But currently, it doesn't do such thing.
The text was updated successfully, but these errors were encountered:
nicopap
added a commit
to nicopap/kdl-rs
that referenced
this issue
May 16, 2022
Fixes#46
When comparing two different `KdlNode` or `KdlDocument`, it's useful to
have a "canonical" representation where formatting differences do not
matter.
`clear_fmt` removes all formatting from a `KdlNode`, but does not apply
recursively, as a result, it doesn't create a canonical representation.
`clear_fmt_recursive` solves this by applying `clear_fmt` recursively to
the contents of the node.
I would expect
clear_fmt
to discard all formatting, including the representation of value (as described by the documentation of the method itself). But currently, it doesn't do such thing.The text was updated successfully, but these errors were encountered: