[git] web/doc-editor.git branch master updated. 7eae141
| From: | irker@php.net | Date: | Fri, 17 Feb 2012 14:04:27 +0000 |
| Subject: | [git] web/doc-editor.git branch master updated. 7eae141 | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9612@lists.php.net to get a copy of this message | ||
The branch, master on web/doc-editor.git has been updated
via 7eae1410e7dbf96986c1c8a95282449e2247441d (commit)
from b6448167ecb4c24d3c1df8ecee780a603a10e544 (commit)
http://git.php.net/?p=web/doc-editor.git;a=log;h=7eae1410e7dbf96986c1c8a95282449e2247441d;hp=b6448167ecb4c24d3c1df8ecee780a603a10e544
Summary of changes:
php/utility.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
-- Log ----------------------------------------
commit 7eae1410e7dbf96986c1c8a95282449e2247441d
Author: Alexander Moskaliov <irker@php.net>
Date: Fri Feb 17 17:56:35 2012 +0400
small notice fix
diff --git a/php/utility.php b/php/utility.php
index fed1bac..76e7eab 100644
--- a/php/utility.php
+++ b/php/utility.php
@@ -76,15 +76,15 @@ function DiffGenHTMLOutput($content) {
'+' => 'ins',
'-' => 'del',
' ' => '',
- '' => '',
'@' => 'line'
);
$header = true;
foreach ($content as $string) {
+ if ($string=='') $string = ' '; // temp fix for empty string
if ($string[0] == '@' && !$header) $return .= '<tr><td
class="truncated"> </td></tr>';
if ($header && $string[0] == '@') {
$header = false; //headers ended
- } elseif (!$header && !in_array($string[0],
array('+','-',' ','@',''))) { // Index:
path/to/file or diff -uN bla bla or other headers
+ } elseif (!$header && !in_array($string[0],
array('+','-',' ','@'))) { // Index: path/to/file or diff
-uN bla bla or other headers
$return .= '<tr><td
class="truncated"> </td></tr>';
$header = true; //headers of new file started
}
Thank you for your contribution.