Changeset 878 for trunk/www/views/textblock_diff.php
- Timestamp:
- 12/26/07 17:44:08 (4 years ago)
- File:
-
- 1 edited
-
trunk/www/views/textblock_diff.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/views/textblock_diff.php
r877 r878 18 18 echo '<span class="'.$op['type'].'">'; 19 19 foreach ($op['lines'] as $line) { 20 echo str_replace(' ', ' ', htmlentities($line)); 21 echo '<br/>'; 20 $output = ""; 21 if (!is_array($line)) { 22 $output = htmlentities($line); 23 } else { 24 // line contains inline diff 25 foreach ($line as $chunk) { 26 if ($chunk['type'] != 'normal') { 27 $output .= '<'.$chunk['type'].'>'; 28 } 29 $output .= htmlentities($chunk['string']); 30 if ($chunk['type'] != 'normal') { 31 $output .= '</'.$chunk['type'].'>'; 32 } 33 } 34 } 35 36 // make sure we display whitespace correctly 37 $output = str_replace(' ', ' ', $output); 38 echo $output.'<br/>'; 22 39 } 23 40 echo '</span>';
Note: See TracChangeset
for help on using the changeset viewer.
![[infoarena] development](/chrome/site/logo.png)