Skip to content
This repository was archived by the owner on Nov 28, 2018. It is now read-only.

Commit 5487339

Browse files
committed
Merge pull request #50 from pratikju/master
Code for converting tabs to spaces in filledText
2 parents 18b446c + aefcde9 commit 5487339

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

jquery.console.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -426,11 +426,11 @@
426426
updatePromptDisplay();
427427
}
428428
};
429-
429+
430430
function clearCurrentPrompt() {
431431
extern.promptText("");
432432
};
433-
433+
434434
function clearScreen() {
435435
inner.children(".jquery-console-prompt-box, .jquery-console-message").remove();
436436
extern.report(" ");
@@ -690,7 +690,7 @@
690690
issueComplete();
691691
}
692692
};
693-
693+
694694
function doCompleteDirectly() {
695695
if(typeof config.completeHandle == 'function') {
696696
var completions = config.completeHandle(promptText);
@@ -724,13 +724,13 @@
724724
}
725725
}
726726
};
727-
727+
728728
function issueComplete() {
729729
if (typeof config.completeIssuer == 'function') {
730730
config.completeIssuer(promptText);
731731
}
732732
};
733-
733+
734734
function showCompletion(promptText, completions) {
735735

736736
var len = completions.length;
@@ -823,7 +823,7 @@
823823
// Simple utility for printing messages
824824
$.fn.filledText = function(txt){
825825
$(this).text(txt);
826-
$(this).html($(this).html().replace(/\n/g,'<br/>'));
826+
$(this).html($(this).html().replace(/\t/g, '&nbsp;&nbsp;').replace(/\n/g,'<br/>'));
827827
return this;
828828
};
829829

0 commit comments

Comments
 (0)