From b784906eb5b46035edcd35e740657f49a18ad56c Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 23 Nov 2012 18:49:22 +0530 Subject: [PATCH] fixed whitespace issue in support ticket --- support/doctype/support_ticket/support_ticket.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/support/doctype/support_ticket/support_ticket.js b/support/doctype/support_ticket/support_ticket.js index 6ab2c68972..7f3fc1dd66 100644 --- a/support/doctype/support_ticket/support_ticket.js +++ b/support/doctype/support_ticket/support_ticket.js @@ -175,9 +175,11 @@ EmailMessage = function(parent, args, list, idx) { wordWrap: 'break-word', textWrap: 'normal', overflowX: 'auto'}, // newlines for text email - (this.content_type=='text/plain' ? this.mail - .replace(/\n[ ]*\n[\n\t ]*/g, '\n\n') // excess whitespace - .replace(/\n/g, '
') : this.mail) + (this.content_type=='text/plain' + ? this.mail + .replace(/\n[ ]*\n[\n\t ]*/g, '\n') // excess whitespace + .replace(/\n/g, '
') + : this.mail) ); // show only first and last message