Changeset 8ad5c89 in github


Ignore:
Timestamp:
May 20, 2010 5:40:59 PM (3 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
c769c66
Parents:
6b6f2e8
Message:

Don't wrap quoted lines at all

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_shared.inc

    rf52c936f r8ad5c89  
    260260  $string = ''; 
    261261  while (count($para)) { 
    262     $list = explode(' ', array_shift($para)); 
     262    $line = array_shift($para); 
     263    if ($line[0] == '>') { 
     264      $string .= $line.$break; 
     265      continue; 
     266    } 
     267    $list = explode(' ', $line); 
    263268    $len = 0; 
    264269    while (count($list)) { 
     
    271276        $len += (1 + $l); 
    272277      } else { 
    273         if ($l > $width) { 
    274           if ($cut) { 
    275             $start = 0; 
    276             while ($l) { 
    277               $str = mb_substr($line, $start, $width); 
    278               $strlen = mb_strlen($str); 
    279               $string .= ($len ? $break : '').$str; 
    280               $start += $strlen; 
    281               $l -= $strlen; 
    282               $len = $strlen; 
    283             } 
    284           } else { 
    285             $string .= ($len ? $break : '').$line; 
    286             if (count($list)) $string .= $break; 
    287             $len = 0; 
    288           } 
    289         } else { 
     278        if ($l > $width) { 
     279          if ($cut) { 
     280            $start = 0; 
     281            while ($l) { 
     282              $str = mb_substr($line, $start, $width); 
     283              $strlen = mb_strlen($str); 
     284              $string .= ($len ? $break : '').$str; 
     285              $start += $strlen; 
     286              $l -= $strlen; 
     287              $len = $strlen; 
     288            } 
     289          } else { 
     290                $string .= ($len ? $break : '').$line; 
     291            if (count($list)) $string .= $break; 
     292            $len = 0; 
     293          } 
     294        } else { 
    290295          $string .= $break.$line; 
    291           $len = $l; 
     296          $len = $l; 
    292297        } 
    293298      } 
Note: See TracChangeset for help on using the changeset viewer.