Ignore:
Timestamp:
08/04/10 10:53:48 (14 years ago)
Author:
niltonneto
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.imap_functions.inc.php

    r3111 r3131  
    837837                                        $content = $this -> replace_links( $content ); 
    838838                                        $content = str_replace( array( ' #$&lt;$# ', ' #$&gt;$# ' ), array( '&lt;', '&gt;' ), $content ); 
    839                                         $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>'; 
     839                                        $content = '<pre>' . $content . '</pre>'; 
    840840 
    841841                                        $return[ 'body' ] = $content; 
     
    889889                                                if(!($file_type == "text/plain" && $msg->fsize[$msg_number][$values] > 102400)) { 
    890890                                                        $content .= htmlentities($this->decodeBody(imap_fetchbody($this->mbox, $msg_number, $msg_part, FT_UID), $msg->encoding[$msg_number][$values], $msg->charset[$msg_number][$values])); 
    891                                                         $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>';                                                     
     891                                                        $content = '<pre>' . $content . '</pre>';                                                        
    892892                                                } 
    893893                                        } 
     
    903903                                        $content .= "<hr align='left' width='95%' style='border:1px solid #DCDCDC'>"; 
    904904                                        $content .= $this->decodeBody(imap_fetchbody($this->mbox, $msg_number, $msg_part, FT_UID), $msg->encoding[$msg_number][$values], $msg->charset[$msg_number][$values]); 
    905                                         $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>'; 
     905                                        $content = '<pre>' . $content . '</pre>'; 
    906906 
    907907                                } 
     
    967967                                                                        $body = $this -> replace_links( $body ); 
    968968                                                                        $body = str_replace( array( ' #$&lt;$# ', ' #$&gt;$# ' ), array( '&lt;', '&gt;' ), $body ); 
    969                                                                         $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>'; 
     969                                                                        $body = '<pre>' . $body . '</pre>'; 
    970970                                                                } 
    971971 
Note: See TracChangeset for help on using the changeset viewer.