Fix quoted text flowing
authorx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Sat, 5 May 2007 12:05:23 +0000 (12:05 +0000)
committerx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Sat, 5 May 2007 12:05:23 +0000 (12:05 +0000)
git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@246 9869982d-c50d-0410-be91-f2a2ec7c7c7b

banana/message.func.inc.php

index 70b45f9..e138bf5 100644 (file)
@@ -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";
         }