/[LeafOK_CVS]/fenglin/lib/str_process.inc.php
ViewVC logotype

Diff of /fenglin/lib/str_process.inc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.14 by sysadm, Fri Apr 4 03:01:37 2025 UTC Revision 1.15 by sysadm, Mon Apr 7 06:26:44 2025 UTC
# Line 104  function split_line(string $str, string Line 104  function split_line(string $str, string
104                          $line_len++;                          $line_len++;
105                  }                  }
106    
107                  $line .= $c;                  if ($line_len > $width)
   
                 if ($line_len >= $width)  
108                  {                  {
109                          if ($lines_count + 1 >= $lines_limit)                          if ($lines_count + 1 >= $lines_limit)
110                          {                          {
# Line 116  function split_line(string $str, string Line 114  function split_line(string $str, string
114                          $result .= ($line . $end_of_line);                          $result .= ($line . $end_of_line);
115                          $lines_count++;                          $lines_count++;
116                          $line = $prefix;                          $line = $prefix;
117                          $line_len = $prefix_len;                          $line_len = $prefix_len + 1;
118                  }                  }
119    
120                    $line .= $c;
121          }          }
122    
123          if ($lines_count < $lines_limit)          if ($lines_count < $lines_limit)


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1