summaryrefslogtreecommitdiff
path: root/roundcubemail
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-10-13 07:17:25 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-10-13 07:17:25 +0000
commitdea87f49b47a874737fc16890fee15b68d6445b5 (patch)
treea44f8808119e0d805c652832a557f3af3d95924e /roundcubemail
parent3a5ea26530316f5ebd3ebef1dcc0d6cf794719e4 (diff)
- add empty line before signature
git-svn-id: https://svn.roundcube.net/trunk@1975 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
-rw-r--r--roundcubemail/program/js/app.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index cd7f90a6f..53a869f48 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -2094,6 +2094,8 @@ function rcube_webmail()
message = message.substring(0, p-1) + message.substring(p+sig.length, message.length);
}
+ message = message.replace(/[\r\n]+$/, '');
+
// add the new signature string
if (this.env.signatures && this.env.signatures[id])
{
@@ -2104,7 +2106,7 @@ function rcube_webmail()
}
if (sig.indexOf('-- ')!=0)
sig = '-- \n'+sig;
- message += '\n'+sig;
+ message += '\n\n'+sig;
}
}
else