Ignore:
Timestamp:
12/28/07 19:21:38 (4 years ago)
Author:
bogdanpasoi@…
Message:

Diff & calendar macro fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/views/textblock_diff.php

    r878 r881  
    1616        echo '<div class="diff">'; 
    1717        foreach ($block as $op) { 
    18             echo '<span class="'.$op['type'].'">'; 
     18            echo '<pre class="'.$op['type'].'">'; 
    1919            foreach ($op['lines'] as $line) { 
    2020                $output = ""; 
     
    3434                } 
    3535 
    36                 // make sure we display whitespace correctly 
    37                 $output = str_replace('  ', '&nbsp;&nbsp;', $output); 
    38                 echo $output.'<br/>'; 
     36                $output = str_replace("\n", '', $output); 
     37                $output = str_replace("\r", '', $output); 
     38                echo $output."\n"; 
    3939            } 
    40             echo '</span>'; 
     40            echo '</pre>'; 
    4141        } 
    4242        echo '</div>'; 
Note: See TracChangeset for help on using the changeset viewer.