docx-rs
docx-rs copied to clipboard
WIP: Add last rendered page index to Paragraphs and Tables
What does this change?
Uses <w:lastRenderedPageBreak/>
XML Element to keep track of the last rendered page. Then appends that page rendered index to paragraphs and tables.
References
- Issue https://github.com/bokuweb/docx-rs/issues/670 for more info
@bokuweb - I've been having some issue with replacing the snapshots with insta
. I'm a newbie with this cargo.
cargo insta accept
error: Failed parsing the provided YAML text
Is there yaml in your vscode config or something else code editor specific i might be missing?
All of the cargo-insta/ insta commands fail. Make test does work to generate the new snapshots to compare.
@Czechh Thanks! I suspect it might be a bug with Insta. I'll handle the updates on my end, so just ignore Insta for now.
@Czechh
Sorry. Could you please try followin command and retry insta?
find docx-core/tests/snapshots/* | xargs sed -i '' 's/json"---/json"\n---/'