Skip to main content

patch_own_changes

Function patch_own_changes 

Source
pub fn patch_own_changes(
    docx: &[u8],
    options: &PatchOptions,
) -> Result<Patch, MarkdownError>
Expand description

patch_redline for the owner’s own changes: every change by another author, or by the owner on another date, is accepted first, so the patch reads as only the changes still attributed to the owner. An edit plan with existing_revisions: "keep" writes its patch this way, beside the other party’s tracked changes.

§Errors

  • MarkdownError::Docx when the package’s tracked changes cannot be listed (admission refusal, package read failure, or malformed part).
  • MarkdownError::Package when accepting the other-party revisions or accepting / rejecting every revision afterward fails.