Add linebreaks for quoted replies in PMs, so that there will be a ">" 
per line, instead of per paragraph.

        Patch by denise. 

diffs (11 lines):

diff -r 2d8af4871606 -r 32d605f3a7b8 htdocs/inbox/compose.bml
--- a/htdocs/inbox/compose.bml  Sat Jul 11 10:40:16 2009 +0000
+++ b/htdocs/inbox/compose.bml  Sat Jul 11 10:51:10 2009 +0000
@@ -168,6 +168,7 @@ body<=
         $msg_subject = "Re: " . $msg_subject
             unless $msg_subject =~ /Re: /;
         $msg_body = $msg->body;
+        $msg_body =~ s/(.{70}[^\s]*)\s+/$1\n/g;
         $msg_body =~ s/(^.*)/\> $1/gm;
         $msg_body = "\n\n--- $reply_to wrote:\n" . $msg_body;
         $msg_parent .= LJ::html_hidden({
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to