summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-04-08 18:39:23 +0000
committeralecpl <alec@alec.pl>2009-04-08 18:39:23 +0000
commit6e9f9fb9e62702e786329a370466ce620b4ebac2 (patch)
tree71796bf41290e01a26f57b67d3076fdf506af442 /program
parent157fcb81eab3125ac1070f1b03898ad4b3e0f1c1 (diff)
- Fix adding signature separator in html mode (#1485350)
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 7f1e7241b..51cce5df3 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2210,6 +2210,13 @@ function rcube_webmail()
{
newsig = this.env.signatures[id]['text'];
htmlsig = this.env.signatures[id]['is_html'];
+
+ if (newsig) {
+ if (htmlsig && this.env.signatures[id]['plain_text'].indexOf('-- ')!=0)
+ newsig = '<p>-- </p>' + newsig;
+ else if (!htmlsig && newsig.indexOf('-- ')!=0)
+ newsig = '-- \n' + newsig;
+ }
}
if (htmlsig)