[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

MS Word diff is backwards

From: Greg Sheremeta <gsheremeta_at_inergex.com>
Date: 2007-06-13 18:20:07 CEST

I'm using Word 2007.

When using diff on Word documents, I noticed the Word comparison is
backwards. I.e. if I add something to a document, Word says I deleted
it, and vice versa. This two line change to diff-doc.js seems to work
for me.

 

58c58

< destination = word.Documents.Open(sNewDoc);

---
> destination = word.Documents.Open(sBaseDoc);
76c76
<     destination.Compare(sBaseDoc, "Comparison", wdCompareTargetNew,
true, true);
---
>     destination.Compare(sNewDoc, "Comparison", wdCompareTargetNew,
true, true);
 
Or maybe it's a Word 2007-specific thing, in which case the fix would be
a bit trickier. Or maybe I'm missing something!
 
Greg
 
Received on Wed Jun 13 18:20:18 2007

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.