From f0cc1229487adb1f4dccfdc26efdbfd7f4db199e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Dr=C3=B6scher?= Date: Sun, 28 Jan 2007 16:46:26 +0000 Subject: First bunch of changes for #5712 git-svn-id: file:///svn/phpbb/trunk@6947 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/diff/renderer.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'phpBB/includes/diff') diff --git a/phpBB/includes/diff/renderer.php b/phpBB/includes/diff/renderer.php index 490450dd7b..ce9e8955aa 100644 --- a/phpBB/includes/diff/renderer.php +++ b/phpBB/includes/diff/renderer.php @@ -298,17 +298,17 @@ class diff_renderer_unified extends diff_renderer function _context($lines) { - return '
' . htmlspecialchars($this->_lines($lines, ' ')) . '
'; + return '
' . htmlspecialchars($this->_lines($lines, ' ')) . '
'; } function _added($lines) { - return '
' . htmlspecialchars($this->_lines($lines, '+')) . '
'; + return '
' . htmlspecialchars($this->_lines($lines, '+')) . '
'; } function _deleted($lines) { - return '
' . htmlspecialchars($this->_lines($lines, '-')) . '
'; + return '
' . htmlspecialchars($this->_lines($lines, '-')) . '
'; } function _changed($orig, $final) @@ -365,7 +365,7 @@ class diff_renderer_inline extends diff_renderer */ function get_diff_content($diff) { - return '
' . nl2br($this->render($diff)) . '
'; + return '
' . nl2br($this->render($diff)) . '
'; } function _start_diff() @@ -614,8 +614,8 @@ class diff_renderer_side_by_side extends diff_renderer $line = $current_context; $current_context = ''; - $output .= '
' . ((strlen($line)) ? $line : ' ') . '
-
' . ((strlen($line)) ? $line : ' ') . '
'; + $output .= '
' . ((strlen($line)) ? $line : ' ') . '
+
' . ((strlen($line)) ? $line : ' ') . '
'; } switch ($change['type']) @@ -628,7 +628,7 @@ class diff_renderer_side_by_side extends diff_renderer $line .= htmlspecialchars($_line) . '
'; } - $output .= ' 
' . ((strlen($line)) ? $line : ' ') . '
'; + $output .= ' 
' . ((strlen($line)) ? $line : ' ') . '
'; break; case 'remove': @@ -639,7 +639,7 @@ class diff_renderer_side_by_side extends diff_renderer $line .= htmlspecialchars($_line) . '
'; } - $output .= '
' . ((strlen($line)) ? $line : ' ') . '
 '; + $output .= '
' . ((strlen($line)) ? $line : ' ') . '
 '; break; case 'empty': @@ -664,7 +664,7 @@ class diff_renderer_side_by_side extends diff_renderer if (!empty($left)) { - $output .= '
' . $left . '
'; + $output .= '
' . $left . '
'; } else if ($row < $oldsize) { @@ -677,7 +677,7 @@ class diff_renderer_side_by_side extends diff_renderer if (!empty($right)) { - $output .= '
' . $right . '
'; + $output .= '
' . $right . '
'; } else if ($row < $newsize) { @@ -698,8 +698,8 @@ class diff_renderer_side_by_side extends diff_renderer $line = $current_context; $current_context = ''; - $output .= '
' . ((strlen($line)) ? $line : ' ') . '
'; - $output .= '
' . ((strlen($line)) ? $line : ' ') . '
'; + $output .= '
' . ((strlen($line)) ? $line : ' ') . '
'; + $output .= '
' . ((strlen($line)) ? $line : ' ') . '
'; } } } -- cgit v1.2.1