Ignore:
Timestamp:
05/20/10 14:35:56 (14 years ago)
Author:
niltonneto
Message:

Ticket #1081 - Corrigido problema de quebra de linha em email text/plain.

File:
1 edited

Legend:

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

    r2789 r2830  
    725725                                        $content = $this -> replace_links( $content ); 
    726726                                        $content = str_replace( array( ' #$<$# ', ' #$>$# ' ), array( '<', '>' ), $content ); 
    727                                         $content = '<pre style="font-family: monospace">' . $content . '</pre>'; 
     727                                        $content = '<pre class="preWrap">' . $content . '</pre>'; 
    728728 
    729729                                        $return[ 'body' ] = $content; 
     
    777777                                                if(!($file_type == "text/plain" && $msg->fsize[$msg_number][$values] > 102400)) { 
    778778                                                        $content .= htmlentities($this->decodeBody(imap_fetchbody($this->mbox, $msg_number, $msg_part, FT_UID), $msg->encoding[$msg_number][$values], $msg->charset[$msg_number][$values])); 
    779                                                         $content = '<pre style="font-family: monospace">' . $content . '</pre>';                                                         
     779                                                        $content = '<pre class="preWrap">' . $content . '</pre>';                                                        
    780780                                                } 
    781781                                        } 
     
    791791                                        $content .= "<hr align='left' width='95%' style='border:1px solid #DCDCDC'>"; 
    792792                                        $content .= $this->decodeBody(imap_fetchbody($this->mbox, $msg_number, $msg_part, FT_UID), $msg->encoding[$msg_number][$values], $msg->charset[$msg_number][$values]); 
    793                                         $content = '<pre style="font-family: monospace">' . $content . '</pre>'; 
     793                                        $content = '<pre class="preWrap">' . $content . '</pre>'; 
    794794 
    795795                                } 
     
    855855                                                                        $body = $this -> replace_links( $body ); 
    856856                                                                        $body = str_replace( array( ' #$&lt;$# ', ' #$&gt;$# ' ), array( '&lt;', '&gt;' ), $body ); 
    857                                                                         $body = '<pre style="font-family: monospace">' . $body . '</pre>'; 
     857                                                                        $body = '<pre class="preWrap">' . $body . '</pre>'; 
    858858                                                                } 
    859859 
Note: See TracChangeset for help on using the changeset viewer.