Changeset 2830


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.

Location:
branches/2.0/expressoMail1_2
Files:
3 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 
  • branches/2.0/expressoMail1_2/templates/classic/main.css

    r2436 r2830  
    1010        font-family: Verdana, Arial, Helvetica, sans-serif; 
    1111        font-size: 13px; 
     12} 
     13.preWrap{ 
     14        /* CSS2 */ 
     15        white-space:pre; 
     16        /* IE */ 
     17        word-wrap: break-word; 
     18        /* IE6 */ 
     19        white-space:pre-wrap; 
     20        font-family: monospace; 
    1221} 
    1322 
  • branches/2.0/expressoMail1_2/templates/default/main.css

    r2786 r2830  
    1111        font-size: 13px; 
    1212} 
     13.preWrap{ 
     14        /* CSS2 */ 
     15        white-space:pre; 
     16        /* IE */ 
     17        word-wrap: break-word; 
     18        /* IE6 */ 
     19        white-space:pre-wrap; 
     20        font-family: monospace; 
     21} 
    1322.whiteSpace{ 
    1423        width: 2px; 
    1524} 
     25 
    1626 
    1727.table_box{ 
Note: See TracChangeset for help on using the changeset viewer.