1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-25 23:03:15 +00:00

Skip whitespace from start of inline macro definitions

Now `\define mymacro() yes` will not have a leading space in the
variable value
This commit is contained in:
Jermolene 2014-08-28 20:21:09 +01:00
parent d945492b8b
commit 43aeb47fc3

View File

@ -62,6 +62,8 @@ exports.parse = function() {
} else {
// Otherwise, the end of the definition is marked by the end of the line
reEnd = /(\r?\n)/mg;
// Move past any whitespace
this.parser.pos = $tw.utils.skipWhiteSpace(this.parser.source,this.parser.pos);
}
// Find the end of the definition
reEnd.lastIndex = this.parser.pos;