Comments (2)
oh huh. Thanks for the report. I'm rewriting the formatting stuff as part of the new kdlv2 parser rewrite, so I'll make sure this works this time around!
from kdl-rs.
Thanks a lot!
When the KdlDocument
is created manually within the Rust function, it seems to format properly. So I'm not sure whether it's a bug in the parser or the formatter. Or maybe in a mix of both.
Using KdlDocument::clear_fmt_recursive()
results in the correct indentation, but omits comments, as expected.
from kdl-rs.
Related Issues (20)
- Query API
- Better formatter
- Test against main kdl compliance test suite. HOT 1
- Custom float printer for consistent default float printing
- Kaydle is mentioned in the README but the only version has been yanked. HOT 3
- `KdlEntry::clear_fmt` does not clear all formatting
- Cannot easily format nodes if std::fmt::Display is in scope
- Odd error span with invalid float HOT 4
- `doc.to_string().parse()` is not idempotent HOT 1
- confusing error message for forgetting to wrap a string in quotes HOT 6
- Insertion/removal behavior HOT 2
- `result.replace("\n", "\r\n")` for `KdlDocument::to_string` on Windows HOT 1
- Insert into dash-val block HOT 1
- raw string formatter is broken
- port to winnow
- Continue parsing on parse error and collect all parse errors
- KDL 2.0.0 support
- Serde Support HOT 6
- No examples for writing/changing values - how to update an attribute?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kdl-rs.