summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-10-13 07:17:25 +0000
committeralecpl <alec@alec.pl>2008-10-13 07:17:25 +0000
commit87b7959f2b6c79235ea54979c79a8562d291402f (patch)
tree715bcf26d2e592af3a8da974ad922b3506197107 /program/js
parent2b180b1cceb8e0afb6a8cc091211355a34852f40 (diff)
- add empty line before signature
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index cd7f90a6f..53a869f48 100644
--- a/program/js/app.js
+++ b/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