From 4136c62bfdf0406178f71e16c5a0c9d5af47466d Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Sat, 18 May 2024 13:20:44 -0700 Subject: [PATCH] Wrap the text in quotes, but do not count the depth. --- Rocksolid_Light/rocksolid/newsportal.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rocksolid_Light/rocksolid/newsportal.php b/Rocksolid_Light/rocksolid/newsportal.php index bae86d8..aafe245 100644 --- a/Rocksolid_Light/rocksolid/newsportal.php +++ b/Rocksolid_Light/rocksolid/newsportal.php @@ -2880,7 +2880,9 @@ function wrap_post($body) } if (strlen($line) > $line_length) { // HERE is where we wrap quoted lines (not so easy) - $line_wrapped = mb_wordwrap($line, $line_length); + $start = substr($line, 0, $depth + 1); + $end = substr($line, $depth +1); + $line_wrapped = $start . mb_wordwrap($end, $line_length); $line_wrapped = preg_split("/\n/", $line_wrapped); foreach ($line_wrapped as $lw) { if ($lw[0] != '>') {