From 6e9f9fb9e62702e786329a370466ce620b4ebac2 Mon Sep 17 00:00:00 2001 From: alecpl Date: Wed, 8 Apr 2009 18:39:23 +0000 Subject: - Fix adding signature separator in html mode (#1485350) --- program/js/app.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'program/js') 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 = '

--

' + newsig; + else if (!htmlsig && newsig.indexOf('-- ')!=0) + newsig = '-- \n' + newsig; + } } if (htmlsig) -- cgit v1.2.3