From a318ad77cd43a447bced40beb434ff777312e5d4 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Tue, 5 Jun 2012 23:15:52 +0100 Subject: [PATCH] Removed extraneous calls to skipWhitespace Instead we'll skip whitespace at the start of a run --- core/modules/parsers/newwikitextparser/rules/heading.js | 1 - core/modules/parsers/newwikitextparser/rules/list.js | 2 -- 2 files changed, 3 deletions(-) diff --git a/core/modules/parsers/newwikitextparser/rules/heading.js b/core/modules/parsers/newwikitextparser/rules/heading.js index 82796fdeb..64fa189b3 100644 --- a/core/modules/parsers/newwikitextparser/rules/heading.js +++ b/core/modules/parsers/newwikitextparser/rules/heading.js @@ -32,7 +32,6 @@ exports.regExpString = "!{1,6}"; exports.parse = function(match,isBlock) { this.pos = match.index + match[0].length; - this.skipWhitespace(); var classedRun = this.parseClassedRun(/(\r?\n)/mg); return [$tw.Tree.Element("h1",{"class": classedRun["class"]},classedRun.tree)]; }; diff --git a/core/modules/parsers/newwikitextparser/rules/list.js b/core/modules/parsers/newwikitextparser/rules/list.js index 30e50b9fc..89751ccb0 100644 --- a/core/modules/parsers/newwikitextparser/rules/list.js +++ b/core/modules/parsers/newwikitextparser/rules/list.js @@ -85,8 +85,6 @@ exports.parse = function(match,isBlock) { } // Skip the list markers this.pos = match.index + match[0].length; - // Skip any whitespace - this.skipWhitespace(); // Process the body of the list item into the last list item var lastListInfo = listTypes[match[0].charAt(match[0].length-1)], lastListChildren = listStack[listStack.length-1].children,