mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
Fixed Signature trailing whitespace (Closes #270)
This commit is contained in:
parent
1423b88839
commit
5e8a57f6a3
2 changed files with 2 additions and 13 deletions
|
|
@ -1240,17 +1240,6 @@
|
|||
return sResult;
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} sPlain
|
||||
* @return {string}
|
||||
*/
|
||||
Utils.convertPlainTextToHtml = function (sPlain)
|
||||
{
|
||||
return sPlain.toString()
|
||||
.replace(/&/g, '&').replace(/>/g, '>').replace(/</g, '<')
|
||||
.replace(/\r/g, '').replace(/\n/g, '<br />');
|
||||
};
|
||||
|
||||
Utils.draggeblePlace = function ()
|
||||
{
|
||||
return $('<div class="draggablePlace"><span class="text"></span> <i class="icon-copy icon-white visible-on-ctrl"></i><i class="icon-mail icon-white hidden-on-ctrl"></i></div>').appendTo('#rl-hidden');
|
||||
|
|
|
|||
|
|
@ -679,7 +679,7 @@
|
|||
|
||||
if (!bHtml)
|
||||
{
|
||||
sSignature = Utils.convertPlainTextToHtml(sSignature);
|
||||
sSignature = Utils.plainToHtml(sSignature, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -935,7 +935,7 @@
|
|||
if (bSignatureToAll && '' !== sSignature)
|
||||
{
|
||||
sText = this.convertSignature(sSignature, '',
|
||||
Utils.convertPlainTextToHtml(sText), sComposeType);
|
||||
Utils.plainToHtml(sText, true), sComposeType);
|
||||
}
|
||||
|
||||
this.editor(function (oEditor) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue