Closed
Description
I am using version 6.11.1
I am encountering an issue where only the first character is missing when a diff is calculated.
Here is my function containing use of the php-diff tool.
public function getContentDiff($old, $new)
{
$renderer_name = 'Combined';
$differ_options = [];
$renderer_options = [
'detailLevel' => 'word',
];
return DiffHelper::calculate($old, $new, $renderer_name, $differ_options, $renderer_options);
}
As you can see from the following image, after an edit is made the diff omits the first character of the line in the diff.
Any advice?