mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-06-06 16:44:07 +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 {
|
} else {
|
||||||
// Otherwise, the end of the definition is marked by the end of the line
|
// Otherwise, the end of the definition is marked by the end of the line
|
||||||
reEnd = /(\r?\n)/mg;
|
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
|
// Find the end of the definition
|
||||||
reEnd.lastIndex = this.parser.pos;
|
reEnd.lastIndex = this.parser.pos;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user