Permalink
Browse files

Added a stock stack which is best suited for text document: focus is …

…on sentences, rather than paragraphes.
  • Loading branch information...
1 parent 97357ec commit b313940b2bb8798e0e013194f1551fb775548b0c @gorhill gorhill committed Jul 12, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 finediff.php
View
@@ -353,6 +353,12 @@ public static function renderFromOpcodes($from, $opcodes, $callback) {
FineDiff::characterDelimiters
);
+ public static $textStack = array(
+ ".",
+ " \t.\n\r",
+ ""
+ );
+
/**------------------------------------------------------------------------
*
* Private section
@@ -679,4 +685,4 @@ private static function renderDiffToHTMLFromOpcode($opcode, $from, $from_offset,
}
}
}
-?>
+

0 comments on commit b313940

Please sign in to comment.