kdl-rs/src
Nicola Papale cd2d6e42b1
feat(fmt): Add clear_fmt_recursive method (#45)
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.
2022-06-10 17:05:58 -07:00
..
document.rs feat(fmt): Add clear_fmt_recursive method (#45) 2022-06-10 17:05:58 -07:00
entry.rs feat(fmt): Add clear_fmt_recursive method (#45) 2022-06-10 17:05:58 -07:00
error.rs docs: fix minor doc issues with error stuff 2022-04-23 02:24:23 -07:00
fmt.rs fix(compliance): pull in spec test suite and fix issues (#40) 2022-04-27 23:21:28 -07:00
identifier.rs fix(compliance): pull in spec test suite and fix issues (#40) 2022-04-27 23:21:28 -07:00
lib.rs fix(compliance): pull in spec test suite and fix issues (#40) 2022-04-27 23:21:28 -07:00
node.rs feat(fmt): Add clear_fmt_recursive method (#45) 2022-06-10 17:05:58 -07:00
nom_compat.rs chore: clean up and docs 2022-04-23 01:21:28 -07:00
parser.rs fix(compliance): pull in spec test suite and fix issues (#40) 2022-04-27 23:21:28 -07:00
value.rs fix(compliance): pull in spec test suite and fix issues (#40) 2022-04-27 23:21:28 -07:00