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

Make diff-doc.js supply "Comparison" as the AuthorName for the Compare Method

From: Jared Silva <jayrod_at_gmail.com>
Date: 2007-03-14 19:07:04 CET

AuthorName
Optional Variant.
The reviewer name associated with the differences generated by the
comparison. If unspecified, the value defaults to the author name of
the revised document or the string "Comparison" if no author
information is present.

For Office XP (2002) and later, if AuthorName is not supplied for the
Compare Method, deletions generated by the comparison will be under
the original author name and insertions will be under the author name
of the revised document. In the general case, the original author
name is the revised author name, so there is no discrepancy. However,
names can differ. When this is the case, the differences generated by
the comparison can be misleading. The differences may suggest changes
by an author that did not actually occur.

The attached patch supplies "Comparison" as the AuthorName for Office
XP (2002) and later, thus eliminating any discrepancies. The patch
also provides the added benefit of all comparisons being under the
"Comparison" name.

Index: diff-doc.js
===================================================================
--- diff-doc.js
+++ diff-doc.js
@@ -73,7 +73,7 @@
 else
 {
     // Compare for Office XP (2002) and later
- destination.Compare(sBaseDoc, "", wdCompareTargetNew, true, true);
+ destination.Compare(sBaseDoc, "Comparison", wdCompareTargetNew,
true, true);
 }

 // Show the comparison result

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org

Received on Wed Mar 14 19:07:19 2007

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

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