Ignore:
Timestamp:
05/20/10 14:34:02 (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
  • trunk/expressoMail1_2/inc/class.imap_functions.inc.php

    r2812 r2829  
    821821                                        $content = $this -> replace_links( $content ); 
    822822                                        $content = str_replace( array( ' #$<$# ', ' #$>$# ' ), array( '<', '>' ), $content ); 
    823                                         $content = '<pre style="font-family: monospace">' . $content . '</pre>'; 
     823                                        $content = '<pre class="preWrap">' . $content . '</pre>'; 
    824824 
    825825                                        $return[ 'body' ] = $content; 
     
    873873                                                if(!($file_type == "text/plain" && $msg->fsize[$msg_number][$values] > 102400)) { 
    874874                                                        $content .= htmlentities($this->decodeBody(imap_fetchbody($this->mbox, $msg_number, $msg_part, FT_UID), $msg->encoding[$msg_number][$values], $msg->charset[$msg_number][$values])); 
    875                                                         $content = '<pre style="font-family: monospace">' . $content . '</pre>';                                                         
     875                                                        $content = '<pre class="preWrap">' . $content . '</pre>';                                                        
    876876                                                } 
    877877                                        } 
     
    887887                                        $content .= "<hr align='left' width='95%' style='border:1px solid #DCDCDC'>"; 
    888888                                        $content .= $this->decodeBody(imap_fetchbody($this->mbox, $msg_number, $msg_part, FT_UID), $msg->encoding[$msg_number][$values], $msg->charset[$msg_number][$values]); 
    889                                         $content = '<pre style="font-family: monospace">' . $content . '</pre>'; 
     889                                        $content = '<pre class="preWrap">' . $content . '</pre>'; 
    890890 
    891891                                } 
     
    951951                                                                        $body = $this -> replace_links( $body ); 
    952952                                                                        $body = str_replace( array( ' #$&lt;$# ', ' #$&gt;$# ' ), array( '&lt;', '&gt;' ), $body ); 
    953                                                                         $body = '<pre style="font-family: monospace">' . $body . '</pre>'; 
     953                                                                        $body = '<pre class="preWrap">' . $body . '</pre>'; 
    954954                                                                } 
    955955 
Note: See TracChangeset for help on using the changeset viewer.