Wrap the text in quotes, but do not count the depth.

This commit is contained in:
Retro_Guy 2024-05-18 13:20:44 -07:00
parent 6b9eb7da18
commit 4136c62bfd
1 changed files with 3 additions and 1 deletions

View File

@ -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] != '>') {