runs message through sqWordWrap before putting it in compose area on reply
[squirrelmail.git] / functions / strings.php
index 82d30580926e4f7a74d427f13a1e2c089e3fa3bf..fa1d84f90ea02916d803a9203befb07fb7ae23be 100644 (file)
@@ -51,6 +51,7 @@
    function sqWordWrap(&$line, $wrap) {
       preg_match("/^([\s>]*)([^\s>].*)$/", $line, $regs);
       $beginning_spaces = $regs[1];
+      $regs[2] .= "\n"; 
       $words = explode(" ", $regs[2]);
 
       $i = 0;