Changeset 3039 for branches


Ignore:
Timestamp:
07/12/10 17:43:42 (14 years ago)
Author:
niltonneto
Message:

Ticket #1111 - Adicionado estilo white-space para corrigir problema no Firefox 2.0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoMail1_2/inc/class.imap_functions.inc.php

    r3024 r3039  
    827827                                                $content = $this -> replace_links( $content );  
    828828                                                $content = str_replace( array( ' #$<$# ', ' #$>$# ' ), array( '<', '>' ), $content );  
    829                                                 $content = '<pre style="white-space:pre;word-wrap: break-word;white-space:pre-wrap;font-family: monospace;font-size:12px">' . $content . '</pre>';  
     829                                                $content = '<pre style="white-space:pre;word-wrap: break-word;white-space:pre-wrap;white-space:-moz-pre-wrap;font-family: monospace;font-size:12px">' . $content . '</pre>';  
    830830 
    831831                                                $return[ 'body' ] = $content;  
     
    880880                                                if(!($file_type == "text/plain" && $msg->fsize[$msg_number][$values] > 102400)) { 
    881881                                                         $content .= htmlentities($this->decodeBody(imap_fetchbody($this->mbox, $msg_number, $msg_part, FT_UID), $msg->encoding[$msg_number][$values], $msg->charset[$msg_number][$values]));  
    882                                                          $content = '<pre style="white-space:pre;word-wrap: break-word;white-space:pre-wrap;font-family: monospace;font-size:12px">' . $content . '</pre>';     
     882                                 $content = '<pre style="white-space:pre;word-wrap: break-word;white-space:pre-wrap;white-space:-moz-pre-wrap;font-family: monospace;font-size:12px">' . $content . '</pre>';     
    883883                                                } 
    884884                                        } 
     
    892892                                 else if($file_type == "message/delivery-status" || $file_type == "message/feedback-report"){  
    893893                                        $content .= "<hr align='left' width='95%' style='border:1px solid #DCDCDC'>"; 
    894                                          $content .= $this->decodeBody(imap_fetchbody($this->mbox, $msg_number, $msg_part, FT_UID), $msg->encoding[$msg_number][$values], $msg->charset[$msg_number][$values]);  
    895                                         $content = '<pre style="white-space:pre;word-wrap: break-word;white-space:pre-wrap;font-family: monospace;font-size:12px">' . $content . '</pre>';  
     894                                        $content .= $this->decodeBody(imap_fetchbody($this->mbox, $msg_number, $msg_part, FT_UID), $msg->encoding[$msg_number][$values], $msg->charset[$msg_number][$values]);  
     895                    $content = '<pre style="white-space:pre;word-wrap: break-word;white-space:pre-wrap;white-space:-moz-pre-wrap;font-family: monospace;font-size:12px">' . $content . '</pre>';  
    896896                                } 
    897897                                else if($file_type == "message/rfc822" || $file_type == "text/rfc822-headers"){ 
     
    956956                                                                        $body = $this -> replace_links( $body );  
    957957                                                                        $body = str_replace( array( ' #$&lt;$# ', ' #$&gt;$# ' ), array( '&lt;', '&gt;' ), $body );  
    958                                                                         $body = '<pre style="white-space:pre;word-wrap: break-word;white-space:pre-wrap;font-family: monospace;font-size:12px">' . $body . '</pre>';  
     958                                                                        $body = '<pre style="white-space:pre;word-wrap: break-word;white-space:pre-wrap;white-space:-moz-pre-wrap;font-family: monospace;font-size:12px">' . $body . '</pre>';  
    959959                                                                }  
    960960 
Note: See TracChangeset for help on using the changeset viewer.