mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-05-06 21:51:31 +00:00
Compare commits
3 Commits
bidirectio
...
restore-co
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d8d3b409c3 | ||
|
|
3d70015d5b | ||
|
|
55deaf2f11 |
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
28
editions/test/tiddlers/tests/data/procedures/Calls.tid
Normal file
28
editions/test/tiddlers/tests/data/procedures/Calls.tid
Normal file
@@ -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=<<param>>/>
|
||||
\end test
|
||||
|
||||
-
|
||||
<<test Hello>>
|
||||
-
|
||||
<<test"Hello">>
|
||||
-
|
||||
<<test'Hello'>>
|
||||
-
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>-
|
||||
Hello
|
||||
-
|
||||
Hello
|
||||
-
|
||||
Hello
|
||||
-</p>
|
||||
Reference in New Issue
Block a user