Remove tab mangling from JavaScript parser

print-window-tiddler
Jeremy Ruston 2012-05-09 13:48:45 +01:00
rodzic 998bd07ef9
commit bb2d65861f
1 zmienionych plików z 0 dodań i 2 usunięć

Wyświetl plik

@ -21,8 +21,6 @@ var JavaScriptParser = function(options) {
// Parse a string of JavaScript code and return the parse tree as a wikitext parse tree
JavaScriptParser.prototype.parse = function(type,code) {
// Simplistically replace tabs with spaces. Browsers will happily render tabs but most default to 8 character tab stops
code = code.replace(/\t/mg," ");
// Try to parse the code
var parseTree;
try {