From 24943aba59b8cfe225d768a6e394bb49347c5005 Mon Sep 17 00:00:00 2001
From: Asaad Mahmood <asaad@spinpunch.com>
Date: Tue, 9 Feb 2016 23:46:29 +0500
Subject: Fixing single line code block on firefox

---
 web/react/utils/markdown.jsx | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'web/react/utils/markdown.jsx')

diff --git a/web/react/utils/markdown.jsx b/web/react/utils/markdown.jsx
index 47b3a9a66..8b3602a89 100644
--- a/web/react/utils/markdown.jsx
+++ b/web/react/utils/markdown.jsx
@@ -151,6 +151,10 @@ class MattermostMarkdownRenderer extends marked.Renderer {
         );
     }
 
+    codespan(text) {
+        return '<pre class="text-nowrap">' + super.codespan(text) + '</pre>';
+    }
+
     br() {
         if (this.formattingOptions.singleline) {
             return ' ';
-- 
cgit v1.2.3-1-g7c22

