fixed whitespace issue in support ticket

This commit is contained in:
Anand Doshi 2012-11-23 18:49:22 +05:30
parent 0245a7b92d
commit b784906eb5

View File

@ -175,9 +175,11 @@ EmailMessage = function(parent, args, list, idx) {
wordWrap: 'break-word', textWrap: 'normal', overflowX: 'auto'}, wordWrap: 'break-word', textWrap: 'normal', overflowX: 'auto'},
// newlines for text email // newlines for text email
(this.content_type=='text/plain' ? this.mail (this.content_type=='text/plain'
.replace(/\n[ ]*\n[\n\t ]*/g, '\n\n') // excess whitespace ? this.mail
.replace(/\n/g, '<br>') : this.mail) .replace(/\n[ ]*\n[\n\t ]*/g, '\n') // excess whitespace
.replace(/\n/g, '<br>')
: this.mail)
); );
// show only first and last message // show only first and last message