mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-27 21:41:10 -05:00
word granularity
This commit is contained in:
parent
415e51eb5a
commit
ff1027a8d8
@ -239,7 +239,7 @@ class Pastes extends CI_Model
|
||||
include_once ('./application/libraries/finediff.php');
|
||||
$from_text = $row['raw'];
|
||||
$to_text = $data['raw'];
|
||||
$opcodes = FineDiff::getDiffOpcodes($from_text, $to_text);
|
||||
$opcodes = FineDiff::getDiffOpcodes($from_text, $to_text, FineDiff::$wordGranularity);
|
||||
$to_text = FineDiff::renderToTextFromOpcodes($from_text, $opcodes);
|
||||
$data['paste'] = $this->_format_diff(nl2br(FineDiff::renderDiffToHTMLFromOpcodes($from_text, $opcodes)));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user