From: x2003bruneau Date: Sat, 5 May 2007 12:05:23 +0000 (+0000) Subject: Fix quoted text flowing X-Git-Tag: 1.8~63 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=0954b1a72e7b991ce883c6a22f23c90531d3d0a0;p=banana.git Fix quoted text flowing git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@246 9869982d-c50d-0410-be91-f2a2ec7c7c7b --- diff --git a/banana/message.func.inc.php b/banana/message.func.inc.php index 70b45f9..e138bf5 100644 --- a/banana/message.func.inc.php +++ b/banana/message.func.inc.php @@ -105,7 +105,9 @@ function banana_flow($text) $text = ''; while (!is_null($line = array_shift($lines))) { if ($line != '-- ') { - $text .= rtrim(str_replace("\n", " \n", banana_wordwrap($line))) . "\n"; + $level = 0; + $line = banana_removeQuotes($line, $level); + $text .= rtrim(str_replace("\n", " \n", banana_wordwrap($line, $level))) . "\n"; } else { $text .= $line . "\n"; }