Skip whitespace from start of inline macro definitions

Now `\define mymacro() yes` will not have a leading space in the
variable value
print-window-tiddler
Jermolene 2014-08-28 20:21:09 +01:00
rodzic d945492b8b
commit 43aeb47fc3
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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;