bokuweb / docx-rs

:memo: A .docx file writer with Rust/WebAssembly.
https://bokuweb.github.io/docx-rs/
MIT License
334 stars 57 forks source link

WIP: Add last rendered page index to Paragraphs and Tables #671

Open Czechh opened 7 months ago

Czechh commented 7 months ago

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

Czechh commented 7 months ago

@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.

bokuweb commented 7 months ago

@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.

bokuweb commented 7 months ago

@Czechh

Sorry. Could you please try followin command and retry insta?

find docx-core/tests/snapshots/* | xargs sed -i '' 's/json"---/json"\n---/'