Ignore:
Timestamp:
08/03/10 17:00:29 (14 years ago)
Author:
niltonneto
Message:

Ticket #1111 - Corrigido problema ao editar/imprimir mensagens com tags <pre>.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/expressoMail1_2/inc/class.imap_functions.inc.php

    r3038 r3128  
    732732                                        $content = $this -> replace_links( $content ); 
    733733                                        $content = str_replace( array( ' #$&lt;$# ', ' #$&gt;$# ' ), array( '&lt;', '&gt;' ), $content ); 
    734                                         $content = '<pre style="white-space:pre;word-wrap: break-word;white-space:pre-wrap;white-space:-moz-pre-wrap;font-family: monospace;font-size:12px">' . $content . '</pre>'; 
     734                                        $content = '<pre>' . $content . '</pre>'; 
    735735 
    736736                                        $return[ 'body' ] = $content; 
     
    784784                                                if(!($file_type == "text/plain" && $msg->fsize[$msg_number][$values] > 102400)) { 
    785785                                                        $content .= htmlentities($this->decodeBody(imap_fetchbody($this->mbox, $msg_number, $msg_part, FT_UID), $msg->encoding[$msg_number][$values], $msg->charset[$msg_number][$values])); 
    786                                                         $content = '<pre style="white-space:pre;word-wrap: break-word;white-space:pre-wrap;white-space:-moz-pre-wrap;font-family: monospace;font-size:12px">' . $content . '</pre>';                                                     
     786                                                        $content = '<pre>' . $content . '</pre>';                                                        
    787787                                                } 
    788788                                        } 
     
    798798                                        $content .= "<hr align='left' width='95%' style='border:1px solid #DCDCDC'>"; 
    799799                                        $content .= $this->decodeBody(imap_fetchbody($this->mbox, $msg_number, $msg_part, FT_UID), $msg->encoding[$msg_number][$values], $msg->charset[$msg_number][$values]); 
    800                                         $content = '<pre style="white-space:pre;word-wrap: break-word;white-space:pre-wrap;white-space:-moz-pre-wrap;font-family: monospace;font-size:12px">' . $content . '</pre>'; 
     800                                        $content = '<pre>' . $content . '</pre>'; 
    801801 
    802802                                } 
     
    862862                                                                        $body = $this -> replace_links( $body ); 
    863863                                                                        $body = str_replace( array( ' #$&lt;$# ', ' #$&gt;$# ' ), array( '&lt;', '&gt;' ), $body ); 
    864                                                                         $body = '<pre style="white-space:pre;word-wrap: break-word;white-space:pre-wrap;white-space:-moz-pre-wrap;font-family: monospace;font-size:12px">' . $body . '</pre>'; 
     864                                                                        $body = '<pre>' . $body . '</pre>'; 
    865865                                                                } 
    866866 
Note: See TracChangeset for help on using the changeset viewer.