ForNeVeR / ForNeVeR/ExtDiff

Document comparison is opposite from expected order

未关闭
#9 0 条评论 0 个 reaction 已指派 1 人 已被 @ForNeVeR 认领 在 GitHub 查看
bug
主要语言
PowerShell
星标
139
派生
21
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。