From e1aa60ebff4527edd7294018f1627180f22f843c Mon Sep 17 00:00:00 2001 From: Robert Starsi Date: Tue, 17 Feb 2015 19:46:38 +0200 Subject: [PATCH] Improved Plain Text message rendering: nice monospace fonts, respects whitespace --- assets/javascripts/mailcatcher.js.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/mailcatcher.js.coffee b/assets/javascripts/mailcatcher.js.coffee index fbac9779..646867b6 100644 --- a/assets/javascripts/mailcatcher.js.coffee +++ b/assets/javascripts/mailcatcher.js.coffee @@ -276,7 +276,7 @@ class MailCatcher text = message_iframe.text() text = text.replace(/((http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:\/~\+#]*[\w\-\@?^=%&\/~\+#])?)/g, """$1""") text = text.replace(/\n/g, "
") - message_iframe.find("html").html("#{text}") + message_iframe.find("html").html("
#{text}
") refresh: -> $.getJSON "/messages", (messages) =>