From 9f01f98547e791642306e5caf61fceb0d52185a1 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 28 Aug 2005 06:11:43 +0000 Subject: [PATCH] Fix for advanced add display in diff --- includes/svnlib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/svnlib.php b/includes/svnlib.php index f7f9168..8ba1b9a 100644 --- a/includes/svnlib.php +++ b/includes/svnlib.php @@ -571,7 +571,8 @@ class SVNDiff $removed = substr($lastcontent, $delta['start'], $diff); $this->diff["$chunk"][ count($this->diff["$chunk"]) - 2 ]['line'] = substr_replace($lastcontent, '{@--}' . $removed . '{/@--}', $delta['start'], $diff); } - else + + if (strlen($content) > $delta['end'] - $diff) { $added = substr($content, $delta['start'], $diff); $content = substr_replace($content, '{@++}' . $added . '{/@++}', $delta['start'], $diff); -- 2.43.5