lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r790387 - /incubator/lucene.net/trunk/C#/contrib/Highlighter.Net/Highlighter.Net/Highlighter.cs
Date Wed, 01 Jul 2009 21:29:17 GMT
Author: digy
Date: Wed Jul  1 21:29:15 2009
New Revision: 790387

URL: http://svn.apache.org/viewvc?rev=790387&view=rev
Log:
Undo of previous Highlighter.cs patch

Modified:
    incubator/lucene.net/trunk/C#/contrib/Highlighter.Net/Highlighter.Net/Highlighter.cs

Modified: incubator/lucene.net/trunk/C#/contrib/Highlighter.Net/Highlighter.Net/Highlighter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/contrib/Highlighter.Net/Highlighter.Net/Highlighter.cs?rev=790387&r1=790386&r2=790387&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/contrib/Highlighter.Net/Highlighter.Net/Highlighter.cs (original)
+++ incubator/lucene.net/trunk/C#/contrib/Highlighter.Net/Highlighter.Net/Highlighter.cs Wed
Jul  1 21:29:15 2009
@@ -266,7 +266,7 @@
 					System.String markedUpText = formatter.HighlightTerm(encoder.EncodeText(tokenText),
tokenGroup);
 					//store any whitespace etc from between this and last group
 					if (startOffset > lastEndOffset)
-						newText.Append(encoder.EncodeText(text.Substring(lastEndOffset, (startOffset) - (lastEndOffset)+1)));
+						newText.Append(encoder.EncodeText(text.Substring(lastEndOffset, (startOffset) - (lastEndOffset))));
 					newText.Append(markedUpText);
 					lastEndOffset = System.Math.Max(lastEndOffset, endOffset);
 				}



Mime
View raw message