--- fenglin/lib/str_process.inc.php 2025/03/28 10:31:26 1.13 +++ fenglin/lib/str_process.inc.php 2025/04/07 06:26:44 1.15 @@ -1,5 +1,5 @@ = $width) + if ($line_len > $width) { if ($lines_count + 1 >= $lines_limit) { @@ -114,8 +114,10 @@ function split_line($str, $prefix = "", $result .= ($line . $end_of_line); $lines_count++; $line = $prefix; - $line_len = $prefix_len; + $line_len = $prefix_len + 1; } + + $line .= $c; } if ($lines_count < $lines_limit)