From ee63bcdac5e2f753281470ebc678ff7ad001b056 Mon Sep 17 00:00:00 2001 From: ljw Date: Tue, 20 Oct 2015 07:56:04 +0100 Subject: [PATCH] filledText replace spaces with   Otherwise leading spaces and consecutive spaces are squashed. --- jquery.console.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.console.js b/jquery.console.js index 7679827..4fb5198 100644 --- a/jquery.console.js +++ b/jquery.console.js @@ -823,7 +823,7 @@ // Simple utility for printing messages $.fn.filledText = function(txt){ $(this).text(txt); - $(this).html($(this).html().replace(/\t/g, '  ').replace(/\n/g,'
')); + $(this).html($(this).html().replace(/\t/g, '  ').replace(/\n/g,'
').replace(/ /g, ' ')); return this; };