Skip to content

First char is omitted in result #51

Closed
@bAngerman

Description

@bAngerman

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.

Screen Shot 2022-02-03 at 3 55 07 PM

Any advice?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstreamUpstream issue.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions