mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-09 11:29:58 +00:00
284669544b
* fix: trim whitespace when importing variables * feat: added tests for importing variables
29 lines
587 B
Plaintext
29 lines
587 B
Plaintext
title: ImportVariables/WithSetWidgetsAndMacros
|
|
description: Import variables defined with a set widget without whitespace pragma
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
title: Output
|
|
|
|
\whitespace trim
|
|
\import Definitions
|
|
<$text text=<<name>>/>,
|
|
<$text text=<<address>>/>,
|
|
<$text text=<<one>>/>,
|
|
<$text text=<<two>>/>
|
|
+
|
|
title: Definitions
|
|
|
|
\define name() Bugs Bunny
|
|
\procedure address()
|
|
Bunny Hill
|
|
\end
|
|
|
|
<$set name="one" value="elephant">
|
|
<$set name="two" value="giraffe">
|
|
</$set>
|
|
</$set>
|
|
+
|
|
title: ExpectedResult
|
|
|
|
<p>Bugs Bunny,Bunny Hill,elephant,giraffe</p> |