summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
Diffstat (limited to 'program')
-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