Ticket #1486330: separator-3261.patch
| File separator-3261.patch, 2.1 KB (added by aberglund, 2 years ago) |
|---|
-
program/js/app.js
2332 2332 if (show_sig && this.env.identity && this.env.signatures && this.env.signatures[this.env.identity]) { 2333 2333 sig = this.env.signatures[this.env.identity].is_html ? this.env.signatures[this.env.identity].plain_text : this.env.signatures[this.env.identity].text; 2334 2334 2335 if (sig.indexOf('-- ') != 0) 2336 sig = '-- \n'+sig; 2335 if (sig.indexOf('-- ') != 0) { 2336 if (!this.env.sig_above) 2337 sig = '-- \n' + sig; 2338 else 2339 sig = '- \n' + sig; 2340 } 2337 2341 2338 2342 p = this.env.sig_above ? message.indexOf(sig) : message.lastIndexOf(sig); 2339 2343 if (p >= 0) … … 2343 2347 // add the new signature string 2344 2348 if (show_sig && this.env.signatures && this.env.signatures[id]) { 2345 2349 sig = this.env.signatures[id]['is_html'] ? this.env.signatures[id]['plain_text'] : this.env.signatures[id]['text']; 2346 if (sig.indexOf('-- ') != 0) 2347 sig = '-- \n'+sig; 2350 if (sig.indexOf('-- ') != 0) { 2351 if (!this.env.sig_above) 2352 sig = '-- \n' + sig; 2353 else 2354 sig = '- \n' + sig; 2355 } 2348 2356 2349 2357 if (this.env.sig_above) { 2350 2358 if (p >= 0) { // in place of removed signature … … 2412 2420 if (this.env.signatures[id]) { 2413 2421 if (this.env.signatures[id].is_html) { 2414 2422 sig = this.env.signatures[id].text; 2415 if (this.env.signatures[id].plain_text.indexOf('-- ') != 0) 2416 sig = '-- <br />' + sig; 2423 if (this.env.signatures[id].plain_text.indexOf('-- ') != 0) { 2424 if (this.env.sig_above) 2425 sig = '- <br />' + sig; 2426 else 2427 sig = '-- <br />' + sig; 2428 } 2417 2429 } 2418 2430 else { 2419 2431 sig = this.env.signatures[id].text; 2420 if (sig.indexOf('-- ') != 0) 2421 sig = '-- \n' + sig; 2432 if (sig.indexOf('-- ') != 0) { 2433 if (this.env.sig_above) 2434 sig = '- \n' + sig; 2435 else 2436 sig = '-- \n' + sig; 2437 } 2422 2438 sig = '<pre>' + sig + '</pre>'; 2423 2439 }
