mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Remove tab mangling from JavaScript parser
This commit is contained in:
parent
998bd07ef9
commit
bb2d65861f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user