docx-rs icon indicating copy to clipboard operation
docx-rs copied to clipboard

WIP: Add last rendered page index to Paragraphs and Tables

Open Czechh opened this issue 1 year ago • 3 comments

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

Czechh avatar Jan 03 '24 12:01 Czechh

@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 avatar Jan 03 '24 12:01 Czechh

@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 avatar Jan 04 '24 05:01 bokuweb

@Czechh

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

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

bokuweb avatar Jan 17 '24 08:01 bokuweb