Changeset 2829


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.

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

    r2498 r2829  
    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 
  • trunk/expressoMail1_2/templates/default/main.css

    r2785 r2829  
    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 
Note: See TracChangeset for help on using the changeset viewer.