Changeset 2957 for branches


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

Ticket #1111 - Correção de problema ao responder, encaminhar e imprimir 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

    r2845 r2957  
    731731                                        $content = $this -> replace_links( $content ); 
    732732                                        $content = str_replace( array( ' #$<$# ', ' #$>$# ' ), array( '<', '>' ), $content ); 
    733                                         $content = '<pre class="preWrap">' . $content . '</pre>'; 
     733                                        $content = '<pre style="white-space:pre;word-wrap: break-word;white-space:pre-wrap;font-family: monospace;font-size:12px">' . $content . '</pre>'; 
    734734 
    735735                                        $return[ 'body' ] = $content; 
     
    783783                                                if(!($file_type == "text/plain" && $msg->fsize[$msg_number][$values] > 102400)) { 
    784784                                                        $content .= htmlentities($this->decodeBody(imap_fetchbody($this->mbox, $msg_number, $msg_part, FT_UID), $msg->encoding[$msg_number][$values], $msg->charset[$msg_number][$values])); 
    785                                                         $content = '<pre class="preWrap">' . $content . '</pre>';                                                        
     785                                                        $content = '<pre style="white-space:pre;word-wrap: break-word;white-space:pre-wrap;font-family: monospace;font-size:12px">' . $content . '</pre>';                                                       
    786786                                                } 
    787787                                        } 
     
    797797                                        $content .= "<hr align='left' width='95%' style='border:1px solid #DCDCDC'>"; 
    798798                                        $content .= $this->decodeBody(imap_fetchbody($this->mbox, $msg_number, $msg_part, FT_UID), $msg->encoding[$msg_number][$values], $msg->charset[$msg_number][$values]); 
    799                                         $content = '<pre class="preWrap">' . $content . '</pre>'; 
     799                                        $content = '<pre style="white-space:pre;word-wrap: break-word;white-space:pre-wrap;font-family: monospace;font-size:12px">' . $content . '</pre>'; 
    800800 
    801801                                } 
     
    861861                                                                        $body = $this -> replace_links( $body ); 
    862862                                                                        $body = str_replace( array( ' #$&lt;$# ', ' #$&gt;$# ' ), array( '&lt;', '&gt;' ), $body ); 
    863                                                                         $body = '<pre class="preWrap">' . $body . '</pre>'; 
     863                                                                        $body = '<pre style="white-space:pre;word-wrap: break-word;white-space:pre-wrap;font-family: monospace;font-size:12px">' . $body . '</pre>'; 
    864864                                                                } 
    865865 
  • branches/2.0/expressoMail1_2/templates/classic/main.css

    r2830 r2957  
    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 
  • branches/2.0/expressoMail1_2/templates/default/main.css

    r2830 r2957  
    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 } 
     13 
    2214.whiteSpace{ 
    2315        width: 2px; 
Note: See TracChangeset for help on using the changeset viewer.