Vergleich inc/3rdparty/diff/Diff/Renderer/Inline.php - 1.8.5 - 1.8.38

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 4Zeile 4
 *
* This class renders diffs in the Wiki-style "inline" format.
*

 *
* This class renders diffs in the Wiki-style "inline" format.
*

 * Copyright 2004-2011 Horde LLC (http://www.horde.org/)

 * Copyright 2004-2017 Horde LLC (http://www.horde.org/)

 *
* See the enclosed file COPYING for license information (LGPL). If you did
* not receive this file, see http://www.horde.org/licenses/lgpl21.

 *
* See the enclosed file COPYING for license information (LGPL). If you did
* not receive this file, see http://www.horde.org/licenses/lgpl21.

Zeile 153Zeile 153

if ($this->_split_characters) {
$diff = new Horde_Text_Diff('native',


if ($this->_split_characters) {
$diff = new Horde_Text_Diff('native',

                                  array(preg_split('//', $text1),
preg_split('//', $text2)));

                                  array(preg_split('//u', str_replace("\n", $nl, $text1)),
preg_split('//u', str_replace("\n", $nl, $text2))));

        } else {
/* We want to split on word boundaries, but we need to preserve
* whitespace as well. Therefore we split on words, but include

        } else {
/* We want to split on word boundaries, but we need to preserve
* whitespace as well. Therefore we split on words, but include

Zeile 165Zeile 165
        }

/* Get the diff in inline format. */

        }

/* Get the diff in inline format. */

        $renderer = new Horde_Text_Diff_Renderer_inline

        $renderer = new Horde_Text_Diff_Renderer_Inline

            (array_merge($this->getParams(),
array('split_level' => $this->_split_characters ? 'characters' : 'words')));


            (array_merge($this->getParams(),
array('split_level' => $this->_split_characters ? 'characters' : 'words')));