ForNeVeR / ForNeVeR/ExtDiff

Document comparison is opposite from expected order

Open
#9 0 comments 0 reactions 1 assignee Claimed by @ForNeVeR View on GitHub
bug
Dominant language
PowerShell
Stars
139
Forks
21
PR merge metrics
No merged PRs in 30d

Description

Per the readme, the expected PowerShell call syntax is as follows:
`powershell -File Diff-Word.ps1 oldfile.docx newfile.docx`
However, the result is the opposite: Word treats `newfile` as the original and `oldfile` as the updated. This is because the Word command `Document.Compare` expects the syntax `NewDocument.Compare(OldDocument, ...)` but the PowerShell script uses `OldDocument.Compare(NewDocument, ...)` which explains the inverted result in Word. Unfortunately the correct syntax is very unclear in the [Microsoft documentation](https://docs.microsoft.com/en-us/dotnet/api/microsoft.office.tools.word.document.compare) so the confusion is quite understandable. However, the PowerShell script should align with the correct use of the Word command.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.