Changeset 2958


Ignore:
Timestamp:
06/18/10 14:29:26 (14 years ago)
Author:
niltonneto
Message:

Ticket #1111 - Correção de problema ao responder, encaminhar e imprimir email text/plain.

Location:
trunk/expressoMail1_2
Files:
3 edited

Legend:

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

    r2928 r2958  
    853853                                        $content = $this -> replace_links( $content ); 
    854854                                        $content = str_replace( array( ' #$<$# ', ' #$>$# ' ), array( '<', '>' ), $content ); 
    855                                         $content = '<pre class="preWrap">' . $content . '</pre>'; 
     855                                        $content = '<pre style="white-space:pre;word-wrap: break-word;white-space:pre-wrap;font-family: monospace;font-size:12px">' . $content . '</pre>'; 
    856856 
    857857                                        $return[ 'body' ] = $content; 
     
    905905                                                if(!($file_type == "text/plain" && $msg->fsize[$msg_number][$values] > 102400)) { 
    906906                                                        $content .= htmlentities($this->decodeBody(imap_fetchbody($this->mbox, $msg_number, $msg_part, FT_UID), $msg->encoding[$msg_number][$values], $msg->charset[$msg_number][$values])); 
    907                                                         $content = '<pre class="preWrap">' . $content . '</pre>';                                                        
     907                                                        $content = '<pre style="white-space:pre;word-wrap: break-word;white-space:pre-wrap;font-family: monospace;font-size:12px">' . $content . '</pre>';                                                       
    908908                                                } 
    909909                                        } 
     
    919919                                        $content .= "<hr align='left' width='95%' style='border:1px solid #DCDCDC'>"; 
    920920                                        $content .= $this->decodeBody(imap_fetchbody($this->mbox, $msg_number, $msg_part, FT_UID), $msg->encoding[$msg_number][$values], $msg->charset[$msg_number][$values]); 
    921                                         $content = '<pre class="preWrap">' . $content . '</pre>'; 
     921                                        $content = '<pre style="white-space:pre;word-wrap: break-word;white-space:pre-wrap;font-family: monospace;font-size:12px">' . $content . '</pre>'; 
    922922 
    923923                                } 
     
    983983                                                                        $body = $this -> replace_links( $body ); 
    984984                                                                        $body = str_replace( array( ' #$&lt;$# ', ' #$&gt;$# ' ), array( '&lt;', '&gt;' ), $body ); 
    985                                                                         $body = '<pre class="preWrap">' . $body . '</pre>'; 
     985                                                                        $body = '<pre style="white-space:pre;word-wrap: break-word;white-space:pre-wrap;font-family: monospace;font-size:12px">' . $body . '</pre>'; 
    986986                                                                } 
    987987 
  • trunk/expressoMail1_2/templates/classic/main.css

    r2829 r2958  
    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; 
    2112} 
    2213 
  • trunk/expressoMail1_2/templates/default/main.css

    r2829 r2958  
    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; 
    2112} 
    2213 
Note: See TracChangeset for help on using the changeset viewer.