kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Skip whitespace from start of inline macro definitions
Now `\define mymacro() yes` will not have a leading space in the variable valueprint-window-tiddler
rodzic
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;
|
||||||
|
|
Ładowanie…
Reference in New Issue