mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-26 10:00:34 +00:00
Missed off 22e7ec2381
This commit is contained in:
parent
22e7ec2381
commit
3e09eacd20
@ -0,0 +1,25 @@
|
|||||||
|
title: Transclude/Procedures/Whitespace
|
||||||
|
description: Procedures should inherit whitespace settings from definition site
|
||||||
|
type: text/vnd.tiddlywiki-multiple
|
||||||
|
tags: [[$:/tags/wiki-test-spec]]
|
||||||
|
|
||||||
|
title: Output
|
||||||
|
|
||||||
|
\whitespace trim
|
||||||
|
\procedure testproc()
|
||||||
|
This is a sentence
|
||||||
|
\end
|
||||||
|
|
||||||
|
\define testmacro()
|
||||||
|
This is a sentence
|
||||||
|
\end
|
||||||
|
This is a sentence
|
||||||
|
[<<testproc>>]
|
||||||
|
[<<testmacro>>]
|
||||||
|
|
||||||
|
+
|
||||||
|
title: ExpectedResult
|
||||||
|
|
||||||
|
<p>This is a sentence
|
||||||
|
[This is a sentence]
|
||||||
|
[This is a sentence ]</p>
|
@ -3,6 +3,8 @@ tags: $:/tags/EditPreview
|
|||||||
list-after: $:/core/ui/EditTemplate/body/preview/output
|
list-after: $:/core/ui/EditTemplate/body/preview/output
|
||||||
caption: parse tree
|
caption: parse tree
|
||||||
|
|
||||||
|
\whitespace trim
|
||||||
|
|
||||||
\procedure preview-node-properties(node)
|
\procedure preview-node-properties(node)
|
||||||
<$let excludeProperties="text type tag children attributes orderedAttributes">
|
<$let excludeProperties="text type tag children attributes orderedAttributes">
|
||||||
<$list filter="[<node>jsonindexes[]] -[subfilter<excludeProperties>] +[limit[1]]" variable="ignore">
|
<$list filter="[<node>jsonindexes[]] -[subfilter<excludeProperties>] +[limit[1]]" variable="ignore">
|
||||||
@ -33,7 +35,6 @@ caption: parse tree
|
|||||||
\end
|
\end
|
||||||
|
|
||||||
\procedure preview-node-attribute-macro(attribute)
|
\procedure preview-node-attribute-macro(attribute)
|
||||||
\whitespace trim
|
|
||||||
<<
|
<<
|
||||||
<$text text={{{ [<attribute>jsonget[value],[name]] }}}/>
|
<$text text={{{ [<attribute>jsonget[value],[name]] }}}/>
|
||||||
<$list filter="[<attribute>jsonindexes[value],[params]]" variable="index">
|
<$list filter="[<attribute>jsonindexes[value],[params]]" variable="index">
|
||||||
|
Loading…
Reference in New Issue
Block a user