From c25659d87cae61795cdc29f3f7a0e0116193774c Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Wed, 1 Apr 2026 14:22:42 +0100 Subject: [PATCH] Restore compact call syntax (#9778) * Initial commit * Oops broken test --- core/modules/parsers/parseutils.js | 2 +- .../tiddlers/tests/data/procedures/Calls.tid | 28 +++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 editions/test/tiddlers/tests/data/procedures/Calls.tid diff --git a/core/modules/parsers/parseutils.js b/core/modules/parsers/parseutils.js index e2160d4c0..f24be0de9 100644 --- a/core/modules/parsers/parseutils.js +++ b/core/modules/parsers/parseutils.js @@ -239,7 +239,7 @@ exports.parseMacroInvocationAsTransclusion = function(source,pos) { pos = token.end; // Check that the tag is terminated by a space or >>, and that there is a closing >> somewhere ahead if(!(source.charAt(pos) === ">" && source.charAt(pos + 1) === ">") ) { - if(!$tw.utils.parseWhiteSpace(source,pos) || source.indexOf(">>",pos) === -1) { + if(source.indexOf(">>",pos) === -1) { return null; } } diff --git a/editions/test/tiddlers/tests/data/procedures/Calls.tid b/editions/test/tiddlers/tests/data/procedures/Calls.tid new file mode 100644 index 000000000..6ba6af7d4 --- /dev/null +++ b/editions/test/tiddlers/tests/data/procedures/Calls.tid @@ -0,0 +1,28 @@ +title: Procedures/Calls +description: Procedure Calls +type: text/vnd.tiddlywiki-multiple +tags: [[$:/tags/wiki-test-spec]] + +title: Output + +\procedure test(param) +<$text text=<>/> +\end test + +- +<> +- +<> +- +<> +- ++ +title: ExpectedResult + +

- +Hello +- +Hello +- +Hello +-

\ No newline at end of file