mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 09:30:28 +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:
parent
d945492b8b
commit
43aeb47fc3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user