]> git.pld-linux.org Git - packages/eventum.git/blob - eventum-hl-quot-fix.patch
- restored (and i wondered where this fix go)
[packages/eventum.git] / eventum-hl-quot-fix.patch
1 diff -u ./modifier.highlight_quoted.php /tmp/modifier.highlight_quoted.php
2 --- ./include/Smarty/plugins/modifier.highlight_quoted.php      2005-08-24 11:27:20.000000000 +0300
3 +++ ./modifier.highlight_quoted.php     2005-08-24 11:26:33.000000000 +0300
4 @@ -56,18 +56,19 @@
5          if ($escape) {
6              $match[2]    =    htmlspecialchars($match[2]);
7          }
8 -        if(trim($match[2]) != "") {
9 +               $line = trim($match[2]);
10 +               if ($line) {
11              $indent =    strlen(preg_replace('/[\s]*/','',$match[1]));
12              $color  =    $indent % count($colors);
13  
14              $ret   .=    '<font color="'.$colors[$color].'">';
15              $ret   .=    htmlspecialchars($match[1])." ";
16 -            $ret   .=    $match[2];
17 -            $ret   .=    "</font>";
18 +            $ret   .=    $line;
19 +            $ret   .=    "</font>\n";
20          } else {
21 -            $ret   .=    $match[2];
22 +            $ret   .=   "\n";
23          }
24      }
25      return $ret;
26  }
27 -?>
28 \ No newline at end of file
29 +?>
This page took 0.029944 seconds and 3 git commands to generate.