From b2e1dd2138372c3a95667970cbf1a7ed2014fcf0 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 11 Aug 2014 13:52:10 +0100 Subject: [PATCH] Allow whitespace after first line of multiline macro Fixes the remaining part of #482 --- core/modules/parsers/wikiparser/rules/macrodef.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/parsers/wikiparser/rules/macrodef.js b/core/modules/parsers/wikiparser/rules/macrodef.js index 5956dcadd..a57e62c37 100644 --- a/core/modules/parsers/wikiparser/rules/macrodef.js +++ b/core/modules/parsers/wikiparser/rules/macrodef.js @@ -27,7 +27,7 @@ Instantiate parse rule exports.init = function(parser) { this.parser = parser; // Regexp to match - this.matchRegExp = /^\\define\s+([^(\s]+)\(\s*([^)]*)\)(\r?\n)?/mg; + this.matchRegExp = /^\\define\s+([^(\s]+)\(\s*([^)]*)\)(\s*\r?\n)?/mg; }; /*