\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/conditionals/Else.tid b/editions/test/tiddlers/tests/data/conditionals/Else.tid
index ef42f198c..ddcf74981 100644
--- a/editions/test/tiddlers/tests/data/conditionals/Else.tid
+++ b/editions/test/tiddlers/tests/data/conditionals/Else.tid
@@ -19,8 +19,8 @@ title: Output
+
title: ExpectedResult
-
+
This is a Elephant, I think.
-
+
This is a Crocodile, I think.
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/conditionals/Elseif.tid b/editions/test/tiddlers/tests/data/conditionals/Elseif.tid
index 068ac31c9..04242b632 100644
--- a/editions/test/tiddlers/tests/data/conditionals/Elseif.tid
+++ b/editions/test/tiddlers/tests/data/conditionals/Elseif.tid
@@ -23,10 +23,10 @@ title: Output
+
title: ExpectedResult
-
+
This is a Elephant, I think.
-
+
This is a Antelope, I think.
-
+
This is a Crocodile, I think.
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/conditionals/MissingEndIf.tid b/editions/test/tiddlers/tests/data/conditionals/MissingEndIf.tid
index ff01ca959..589a4ea02 100644
--- a/editions/test/tiddlers/tests/data/conditionals/MissingEndIf.tid
+++ b/editions/test/tiddlers/tests/data/conditionals/MissingEndIf.tid
@@ -19,8 +19,8 @@ title: Output
+
title: ExpectedResult
-
+
This is a Elephant
-
+
This is a
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/conditionals/MultipleResults.tid b/editions/test/tiddlers/tests/data/conditionals/MultipleResults.tid
index 866c6d8f5..1e4c8ac10 100644
--- a/editions/test/tiddlers/tests/data/conditionals/MultipleResults.tid
+++ b/editions/test/tiddlers/tests/data/conditionals/MultipleResults.tid
@@ -9,4 +9,4 @@ This is a <%if 1 2 3 4 5 6 %>Elephant<%endif%>, I think.
+
title: ExpectedResult
-
This is a Elephant, I think.
\ No newline at end of file
+
This is a Elephant, I think.
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/conditionals/NestedElseif.tid b/editions/test/tiddlers/tests/data/conditionals/NestedElseif.tid
index bfc3e085c..628658bc5 100644
--- a/editions/test/tiddlers/tests/data/conditionals/NestedElseif.tid
+++ b/editions/test/tiddlers/tests/data/conditionals/NestedElseif.tid
@@ -47,14 +47,14 @@ title: Output
+
title: ExpectedResult
-
+
This is a Indian Elephant, I think.
-
+
This is a African Elephant, I think.
-
+
This is a Unknown Elephant, I think.
-
+
This is a Antelope, I think.
-
+
This is a Crocodile, I think.
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/custom-operators/NestedParameterised.tid b/editions/test/tiddlers/tests/data/custom-operators/NestedParameterised.tid
index 3e4d610d0..5c6b28e25 100644
--- a/editions/test/tiddlers/tests/data/custom-operators/NestedParameterised.tid
+++ b/editions/test/tiddlers/tests/data/custom-operators/NestedParameterised.tid
@@ -21,4 +21,4 @@ title: Output
+
title: ExpectedResult
-
246-492
\ No newline at end of file
+
246-492
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/custom-operators/Parameterised.tid b/editions/test/tiddlers/tests/data/custom-operators/Parameterised.tid
index 2f8337b0f..f812a9fcc 100644
--- a/editions/test/tiddlers/tests/data/custom-operators/Parameterised.tid
+++ b/editions/test/tiddlers/tests/data/custom-operators/Parameterised.tid
@@ -21,4 +21,4 @@ title: Output
+
title: ExpectedResult
-
492-984|492-984
\ No newline at end of file
+
492-984|492-984
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/custom-operators/Simple.tid b/editions/test/tiddlers/tests/data/custom-operators/Simple.tid
index 089701295..b14b99a2a 100644
--- a/editions/test/tiddlers/tests/data/custom-operators/Simple.tid
+++ b/editions/test/tiddlers/tests/data/custom-operators/Simple.tid
@@ -18,4 +18,4 @@ title: Output
+
title: ExpectedResult
-
246|246
\ No newline at end of file
+
246|246
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/data-widget/ImportCompound.tid b/editions/test/tiddlers/tests/data/data-widget/ImportCompound.tid
index dc60b1566..89e9c805b 100644
--- a/editions/test/tiddlers/tests/data/data-widget/ImportCompound.tid
+++ b/editions/test/tiddlers/tests/data/data-widget/ImportCompound.tid
@@ -24,4 +24,4 @@ This is a payload tiddler from a compound tiddler
+
title: ExpectedResult
-
[{"title":"Payload Tiddler","tags":"Alpha Beta Gamma","text":"This is a payload tiddler from a compound tiddler","custom":"Alpha"}]
\ No newline at end of file
+
[{"title":"Payload Tiddler","tags":"Alpha Beta Gamma","text":"This is a payload tiddler from a compound tiddler","custom":"Alpha"}]
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/data-widget/ImportCustomTitle.tid b/editions/test/tiddlers/tests/data/data-widget/ImportCustomTitle.tid
index 91fbde644..538fd6a1c 100644
--- a/editions/test/tiddlers/tests/data/data-widget/ImportCustomTitle.tid
+++ b/editions/test/tiddlers/tests/data/data-widget/ImportCustomTitle.tid
@@ -20,4 +20,4 @@ This is the tiddler HelloThere
+
title: ExpectedResult
-
[{"title":"RealTitle","tags":"Definitions","text":"This is the tiddler HelloThere"}]
\ No newline at end of file
+
[{"title":"RealTitle","tags":"Definitions","text":"This is the tiddler HelloThere"}]
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/data-widget/ImportFilter.tid b/editions/test/tiddlers/tests/data/data-widget/ImportFilter.tid
index 7beca9aba..2989a07e8 100644
--- a/editions/test/tiddlers/tests/data/data-widget/ImportFilter.tid
+++ b/editions/test/tiddlers/tests/data/data-widget/ImportFilter.tid
@@ -25,4 +25,4 @@ This is the tiddler AnotherDefinition
+
title: ExpectedResult
-
[{"title":"AnotherDefinition","tags":"Definitions","text":"This is the tiddler AnotherDefinition","custom":"Alpha"},{"title":"HelloThere","tags":"Definitions","text":"This is the tiddler HelloThere","custom":"Alpha"}]
\ No newline at end of file
+
[{"title":"AnotherDefinition","tags":"Definitions","text":"This is the tiddler AnotherDefinition","custom":"Alpha"},{"title":"HelloThere","tags":"Definitions","text":"This is the tiddler HelloThere","custom":"Alpha"}]
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/data-widget/ImportTiddler.tid b/editions/test/tiddlers/tests/data/data-widget/ImportTiddler.tid
index dd8c57243..74a672026 100644
--- a/editions/test/tiddlers/tests/data/data-widget/ImportTiddler.tid
+++ b/editions/test/tiddlers/tests/data/data-widget/ImportTiddler.tid
@@ -20,4 +20,4 @@ This is the tiddler HelloThere
+
title: ExpectedResult
-
[{"title":"HelloThere","tags":"Definitions","text":"This is the tiddler HelloThere","custom":"Alpha"}]
\ No newline at end of file
+
[{"title":"HelloThere","tags":"Definitions","text":"This is the tiddler HelloThere","custom":"Alpha"}]
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/data-widget/Simple.tid b/editions/test/tiddlers/tests/data/data-widget/Simple.tid
index badb28d27..0ae045d14 100644
--- a/editions/test/tiddlers/tests/data/data-widget/Simple.tid
+++ b/editions/test/tiddlers/tests/data/data-widget/Simple.tid
@@ -15,4 +15,4 @@ title: Output
+
title: ExpectedResult
-
[{"title":"Epsilon","text":"Theta"}]
\ No newline at end of file
+
[{"title":"Epsilon","text":"Theta"}]
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/filters/Base64.tid b/editions/test/tiddlers/tests/data/filters/Base64.tid
index 17f1defff..4b429cbe7 100644
--- a/editions/test/tiddlers/tests/data/filters/Base64.tid
+++ b/editions/test/tiddlers/tests/data/filters/Base64.tid
@@ -13,7 +13,7 @@ title: Output
+
title: ExpectedResult
-
(SmVyZW15MTIzNA==)
+
(SmVyZW15MTIzNA==)
()
(Jeremy1234)
()
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/filters/DiffMergePatch1.tid b/editions/test/tiddlers/tests/data/filters/DiffMergePatch1.tid
index e6e519df5..115cba4fa 100644
--- a/editions/test/tiddlers/tests/data/filters/DiffMergePatch1.tid
+++ b/editions/test/tiddlers/tests/data/filters/DiffMergePatch1.tid
@@ -18,7 +18,7 @@ the hat saw in every category
+
title: ExpectedResult
-
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/filters/fake-variables.tid b/editions/test/tiddlers/tests/data/filters/fake-variables.tid
index 4bd31e007..edc985340 100644
--- a/editions/test/tiddlers/tests/data/filters/fake-variables.tid
+++ b/editions/test/tiddlers/tests/data/filters/fake-variables.tid
@@ -7,21 +7,21 @@ title: Output
\whitespace trim
<$list variable="var" filter="[[existing variable should have output]] :filter[[..currentTiddler]is[variable]]">
-
<>
+
<>
$list>
<$list variable="var" filter="[[non-existing variable should not have output]] :filter[[nonExistingVariable]is[variable]]">
-
<>
+
<>
$list>
<$list variable="var" filter="[[existing variable negated should not have output]] :filter[[..currentTiddler]!is[variable]]">
-
<>
+
<>
$list>
<$list variable="var" filter="[[non-existing variable negated should have output]] :filter[[nonExistingVariable]!is[variable]]">
-
<>
+
<>
$list>
+
title: ExpectedResult
-
existing variable should have output
non-existing variable negated should have output
\ No newline at end of file
+
existing variable should have output
non-existing variable negated should have output
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/filters/substitute.tid b/editions/test/tiddlers/tests/data/filters/substitute.tid
index 873d8e0ba..87b41a547 100644
--- a/editions/test/tiddlers/tests/data/filters/substitute.tid
+++ b/editions/test/tiddlers/tests/data/filters/substitute.tid
@@ -31,7 +31,7 @@ title: Output
+
title: ExpectedResult
-
()
+
()
(Hello There, welcome to $TiddlyWiki$)
(Welcome to TiddlyWiki)
(Welcome to TiddlyWiki today)
diff --git a/editions/test/tiddlers/tests/data/functions/FunctionAttributes.tid b/editions/test/tiddlers/tests/data/functions/FunctionAttributes.tid
index 2deb49bdc..6847dd280 100644
--- a/editions/test/tiddlers/tests/data/functions/FunctionAttributes.tid
+++ b/editions/test/tiddlers/tests/data/functions/FunctionAttributes.tid
@@ -21,4 +21,4 @@ title: Output
+
title: ExpectedResult
-
16|32
\ No newline at end of file
+
16|32
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/functions/FunctionFilterrunVariables.tid b/editions/test/tiddlers/tests/data/functions/FunctionFilterrunVariables.tid
index 5226e9f05..ecae0537c 100644
--- a/editions/test/tiddlers/tests/data/functions/FunctionFilterrunVariables.tid
+++ b/editions/test/tiddlers/tests/data/functions/FunctionFilterrunVariables.tid
@@ -21,4 +21,4 @@ title: Output
+
title: ExpectedResult
-
Idiosyncrasy Caption Field,Idiosyncrasy Caption Field
\ No newline at end of file
+
Idiosyncrasy Caption Field,Idiosyncrasy Caption Field
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/functions/FunctionOperator.tid b/editions/test/tiddlers/tests/data/functions/FunctionOperator.tid
index e2a0038dc..10608d95e 100644
--- a/editions/test/tiddlers/tests/data/functions/FunctionOperator.tid
+++ b/editions/test/tiddlers/tests/data/functions/FunctionOperator.tid
@@ -21,4 +21,4 @@ title: Output
+
title: ExpectedResult
-
64|192
\ No newline at end of file
+
64|192
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/functions/IndentedFunctions.tid b/editions/test/tiddlers/tests/data/functions/IndentedFunctions.tid
index 206a8958e..837801d86 100644
--- a/editions/test/tiddlers/tests/data/functions/IndentedFunctions.tid
+++ b/editions/test/tiddlers/tests/data/functions/IndentedFunctions.tid
@@ -21,4 +21,4 @@ title: Output
+
title: ExpectedResult
-
64|192
\ No newline at end of file
+
64|192
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/functions/RunawayRecursiveFunctions.tid b/editions/test/tiddlers/tests/data/functions/RunawayRecursiveFunctions.tid
index 81be22f16..36d356be5 100644
--- a/editions/test/tiddlers/tests/data/functions/RunawayRecursiveFunctions.tid
+++ b/editions/test/tiddlers/tests/data/functions/RunawayRecursiveFunctions.tid
@@ -7,7 +7,7 @@ title: Output
\whitespace trim
\function .buffalo(p)
-[.buffalo
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/functions/WikifiedFunctions.tid b/editions/test/tiddlers/tests/data/functions/WikifiedFunctions.tid
index 36b64e4a3..e23ab395a 100644
--- a/editions/test/tiddlers/tests/data/functions/WikifiedFunctions.tid
+++ b/editions/test/tiddlers/tests/data/functions/WikifiedFunctions.tid
@@ -33,4 +33,4 @@ $param$ with a ''buffalo''
+
title: ExpectedResult
-
Going to lunch with a ''buffalo''
Going to breakfastwith abuffalo
Going to dinner with a buffalo
Going to lunch with a ''buffalo''Going to breakfastwith abuffaloGoing to dinner with a buffalo
\ No newline at end of file
+
Going to lunch with a ''buffalo''
Going to breakfastwith abuffalo
Going to dinner with a buffalo
Going to lunch with a ''buffalo''Going to breakfastwith abuffaloGoing to dinner with a buffalo
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/genesis-widget/Block.tid b/editions/test/tiddlers/tests/data/genesis-widget/Block.tid
index dfa5dacaf..6ed50fd07 100644
--- a/editions/test/tiddlers/tests/data/genesis-widget/Block.tid
+++ b/editions/test/tiddlers/tests/data/genesis-widget/Block.tid
@@ -27,4 +27,4 @@ Block forced inline
+
title: ExpectedResult
-
Block
Block forced block
Block forced inline
Inline
Inline forced block
Inline forced inline
\ No newline at end of file
+
Block
Block forced block
Block forced inline
Inline
Inline forced block
Inline forced inline
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/genesis-widget/DollarSigns.tid b/editions/test/tiddlers/tests/data/genesis-widget/DollarSigns.tid
index ac12bfe38..5bd8d80d0 100644
--- a/editions/test/tiddlers/tests/data/genesis-widget/DollarSigns.tid
+++ b/editions/test/tiddlers/tests/data/genesis-widget/DollarSigns.tid
@@ -11,4 +11,4 @@ title: Output
+
title: ExpectedResult
-
(Kitten)(Kitten)
\ No newline at end of file
+
(Kitten)(Kitten)
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/genesis-widget/EmptyType.tid b/editions/test/tiddlers/tests/data/genesis-widget/EmptyType.tid
index 59768aa0c..bf3aff918 100644
--- a/editions/test/tiddlers/tests/data/genesis-widget/EmptyType.tid
+++ b/editions/test/tiddlers/tests/data/genesis-widget/EmptyType.tid
@@ -11,4 +11,4 @@ title: Output
+
title: ExpectedResult
-
Mouse
Mouse
\ No newline at end of file
+
Mouse
Mouse
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/genesis-widget/MultipleAttributes.tid b/editions/test/tiddlers/tests/data/genesis-widget/MultipleAttributes.tid
index a93fa2e06..91a11bd20 100644
--- a/editions/test/tiddlers/tests/data/genesis-widget/MultipleAttributes.tid
+++ b/editions/test/tiddlers/tests/data/genesis-widget/MultipleAttributes.tid
@@ -11,4 +11,4 @@ title: Output
+
title: ExpectedResult
-
(Shark|Donkey)(Shark|Donkey)
\ No newline at end of file
+
(Shark|Donkey)(Shark|Donkey)
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/genesis-widget/RedefineLet.tid b/editions/test/tiddlers/tests/data/genesis-widget/RedefineLet.tid
index f6834998d..9c4f4ca23 100644
--- a/editions/test/tiddlers/tests/data/genesis-widget/RedefineLet.tid
+++ b/editions/test/tiddlers/tests/data/genesis-widget/RedefineLet.tid
@@ -26,6 +26,6 @@ title: Output
+
title: ExpectedResult
-
(--Elephant--)
+
(--Elephant--)
(--Kangaroo--)
(--Giraffe--)
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/genesis-widget/Simple.tid b/editions/test/tiddlers/tests/data/genesis-widget/Simple.tid
index d9ec67c00..23e72c7b7 100644
--- a/editions/test/tiddlers/tests/data/genesis-widget/Simple.tid
+++ b/editions/test/tiddlers/tests/data/genesis-widget/Simple.tid
@@ -11,4 +11,4 @@ title: Output
+
title: ExpectedResult
-
Mouse
Mouse
\ No newline at end of file
+
Mouse
Mouse
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/importvariables/WithSetWidgets.tid b/editions/test/tiddlers/tests/data/importvariables/WithSetWidgets.tid
index 5d351583e..916aaf402 100644
--- a/editions/test/tiddlers/tests/data/importvariables/WithSetWidgets.tid
+++ b/editions/test/tiddlers/tests/data/importvariables/WithSetWidgets.tid
@@ -20,4 +20,4 @@ title: Definitions
+
title: ExpectedResult
-
elephant,giraffe
\ No newline at end of file
+
elephant,giraffe
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/importvariables/WithSetWidgets2.tid b/editions/test/tiddlers/tests/data/importvariables/WithSetWidgets2.tid
index b3ef64d7d..85689246e 100644
--- a/editions/test/tiddlers/tests/data/importvariables/WithSetWidgets2.tid
+++ b/editions/test/tiddlers/tests/data/importvariables/WithSetWidgets2.tid
@@ -20,4 +20,4 @@ title: Definitions
+
title: ExpectedResult
-
elephant,giraffe
\ No newline at end of file
+
elephant,giraffe
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/importvariables/WithSetWidgetsAndMacros.tid b/editions/test/tiddlers/tests/data/importvariables/WithSetWidgetsAndMacros.tid
index 282896c88..a357bd165 100644
--- a/editions/test/tiddlers/tests/data/importvariables/WithSetWidgetsAndMacros.tid
+++ b/editions/test/tiddlers/tests/data/importvariables/WithSetWidgetsAndMacros.tid
@@ -27,4 +27,4 @@ Bunny Hill
+
title: ExpectedResult
-
Bugs Bunny,Bunny Hill,elephant,giraffe
\ No newline at end of file
+
Bugs Bunny,Bunny Hill,elephant,giraffe
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/list-widget/WithEmptyParagraphTemplate.tid b/editions/test/tiddlers/tests/data/list-widget/WithEmptyParagraphTemplate.tid
index 7730f525a..f21916ce3 100644
--- a/editions/test/tiddlers/tests/data/list-widget/WithEmptyParagraphTemplate.tid
+++ b/editions/test/tiddlers/tests/data/list-widget/WithEmptyParagraphTemplate.tid
@@ -10,4 +10,4 @@ title: Output
+
title: ExpectedResult
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/list-widget/WithExplicitTemplates.tid b/editions/test/tiddlers/tests/data/list-widget/WithExplicitTemplates.tid
index aad322f54..ca775dba2 100644
--- a/editions/test/tiddlers/tests/data/list-widget/WithExplicitTemplates.tid
+++ b/editions/test/tiddlers/tests/data/list-widget/WithExplicitTemplates.tid
@@ -26,4 +26,4 @@ title: Output
+
title: ExpectedResult
-
123
None!
\ No newline at end of file
+
123
None!
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/list-widget/WithExplicitTemplatesOverriddenByAttributes.tid b/editions/test/tiddlers/tests/data/list-widget/WithExplicitTemplatesOverriddenByAttributes.tid
index 0ce5780af..0fe456d81 100644
--- a/editions/test/tiddlers/tests/data/list-widget/WithExplicitTemplatesOverriddenByAttributes.tid
+++ b/editions/test/tiddlers/tests/data/list-widget/WithExplicitTemplatesOverriddenByAttributes.tid
@@ -30,4 +30,4 @@ title: Template
+
title: ExpectedResult
-
112233
Zero
\ No newline at end of file
+
112233
Zero
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/list-widget/WithJoinTemplate.tid b/editions/test/tiddlers/tests/data/list-widget/WithJoinTemplate.tid
index f1b6f25e9..ea53e551d 100644
--- a/editions/test/tiddlers/tests/data/list-widget/WithJoinTemplate.tid
+++ b/editions/test/tiddlers/tests/data/list-widget/WithJoinTemplate.tid
@@ -27,4 +27,4 @@ title: Output
+
title: ExpectedResult
-
Item:1,Item:2,Item:3
None!
\ No newline at end of file
+
Item:1,Item:2,Item:3
None!
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/list-widget/WithJoinTemplateInBlockMode.tid b/editions/test/tiddlers/tests/data/list-widget/WithJoinTemplateInBlockMode.tid
index c12f4c801..b04dd5dd0 100644
--- a/editions/test/tiddlers/tests/data/list-widget/WithJoinTemplateInBlockMode.tid
+++ b/editions/test/tiddlers/tests/data/list-widget/WithJoinTemplateInBlockMode.tid
@@ -29,4 +29,4 @@ title: Output
title: ExpectedResult
comment: I wish there was a good way to get rid of these extraneous paragraph elements
-
Item:1
Item:2
Item:3
None!
\ No newline at end of file
+
Item:1
Item:2
Item:3
None!
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/list-widget/WithLimit.tid b/editions/test/tiddlers/tests/data/list-widget/WithLimit.tid
index 2f630a1dc..360849cf7 100644
--- a/editions/test/tiddlers/tests/data/list-widget/WithLimit.tid
+++ b/editions/test/tiddlers/tests/data/list-widget/WithLimit.tid
@@ -21,5 +21,5 @@ title: Template
+
title: ExpectedResult
-
Zero:
One: 1
Two: 12
Minus Two: 34
+
Zero:
One: 1
Two: 12
Minus Two: 34
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/list-widget/WithMissingTemplate.tid b/editions/test/tiddlers/tests/data/list-widget/WithMissingTemplate.tid
index 40fb2f07b..898db6a1b 100644
--- a/editions/test/tiddlers/tests/data/list-widget/WithMissingTemplate.tid
+++ b/editions/test/tiddlers/tests/data/list-widget/WithMissingTemplate.tid
@@ -23,4 +23,4 @@ title: Output
+
title: ExpectedResult
-
draft.of: New Tiddler
draft.title: New Tiddler
tag:
title: Draft of 'New Tiddler'
diff --git a/editions/test/tiddlers/tests/data/pragmas/Parsermode-indented.tid b/editions/test/tiddlers/tests/data/pragmas/Parsermode-indented.tid
index 10747735f..a8ead9921 100644
--- a/editions/test/tiddlers/tests/data/pragmas/Parsermode-indented.tid
+++ b/editions/test/tiddlers/tests/data/pragmas/Parsermode-indented.tid
@@ -30,7 +30,7 @@ title: ExpectedResult
! Not Heading
-Text with bold
Heading
Text with bold
! Not Heading
+Text with bold
Heading
Text with bold
! Not Heading
-Text with bold
Heading
Text with bold
+Text with bold
Heading
Text with bold
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/pragmas/Parsermode.tid b/editions/test/tiddlers/tests/data/pragmas/Parsermode.tid
index 57869e37a..5e13312be 100644
--- a/editions/test/tiddlers/tests/data/pragmas/Parsermode.tid
+++ b/editions/test/tiddlers/tests/data/pragmas/Parsermode.tid
@@ -30,7 +30,7 @@ title: ExpectedResult
! Not Heading
-Text with bold
Heading
Text with bold
! Not Heading
+Text with bold
Heading
Text with bold
! Not Heading
-Text with bold
Heading
Text with bold
+Text with bold
Heading
Text with bold
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/pragmas/WhitespaceAfterPragma.tid b/editions/test/tiddlers/tests/data/pragmas/WhitespaceAfterPragma.tid
index 9eb6089ff..713e30552 100644
--- a/editions/test/tiddlers/tests/data/pragmas/WhitespaceAfterPragma.tid
+++ b/editions/test/tiddlers/tests/data/pragmas/WhitespaceAfterPragma.tid
@@ -21,7 +21,7 @@ Now!
+
title: ExpectedResult
-
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/procedures/IndentedEnd.tid b/editions/test/tiddlers/tests/data/procedures/IndentedEnd.tid
index 664be3446..597cd1573 100644
--- a/editions/test/tiddlers/tests/data/procedures/IndentedEnd.tid
+++ b/editions/test/tiddlers/tests/data/procedures/IndentedEnd.tid
@@ -13,4 +13,4 @@ Out: <>
+
title: ExpectedResult
-
Out: hello \end
\ No newline at end of file
+
Out: hello \end
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/procedures/MismatchedNamedEnd.tid b/editions/test/tiddlers/tests/data/procedures/MismatchedNamedEnd.tid
index 0b5385c6e..81cc4e1e1 100644
--- a/editions/test/tiddlers/tests/data/procedures/MismatchedNamedEnd.tid
+++ b/editions/test/tiddlers/tests/data/procedures/MismatchedNamedEnd.tid
@@ -13,4 +13,4 @@ Out: <>
+
title: ExpectedResult
-
Out: \end goodbye
\ No newline at end of file
+
Out: \end goodbye
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/procedures/Nested-indented.tid b/editions/test/tiddlers/tests/data/procedures/Nested-indented.tid
index 75aaadb4c..70a2edd0c 100644
--- a/editions/test/tiddlers/tests/data/procedures/Nested-indented.tid
+++ b/editions/test/tiddlers/tests/data/procedures/Nested-indented.tid
@@ -17,4 +17,4 @@ title: Output
+
title: ExpectedResult
-
ElephantElephant
\ No newline at end of file
+
ElephantElephant
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/procedures/Nested.tid b/editions/test/tiddlers/tests/data/procedures/Nested.tid
index f63c634af..51288c3f3 100644
--- a/editions/test/tiddlers/tests/data/procedures/Nested.tid
+++ b/editions/test/tiddlers/tests/data/procedures/Nested.tid
@@ -17,4 +17,4 @@ title: Output
+
title: ExpectedResult
-
ElephantElephant
\ No newline at end of file
+
ElephantElephant
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/procedures/TrailingNewlines.tid b/editions/test/tiddlers/tests/data/procedures/TrailingNewlines.tid
index 467235876..6b78ead31 100644
--- a/editions/test/tiddlers/tests/data/procedures/TrailingNewlines.tid
+++ b/editions/test/tiddlers/tests/data/procedures/TrailingNewlines.tid
@@ -19,4 +19,4 @@ Paragraph 2
+
title: ExpectedResult
-
Paragraph 1
Paragraph 2
\ No newline at end of file
+
Paragraph 1
Paragraph 2
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/procedures/WhitespaceOnlyWithEnd.tid b/editions/test/tiddlers/tests/data/procedures/WhitespaceOnlyWithEnd.tid
index 51f0b87df..61f72e9cd 100644
--- a/editions/test/tiddlers/tests/data/procedures/WhitespaceOnlyWithEnd.tid
+++ b/editions/test/tiddlers/tests/data/procedures/WhitespaceOnlyWithEnd.tid
@@ -14,5 +14,5 @@ Out: <>
+
title: ExpectedResult
-
Nothing
-\end
Out:
\ No newline at end of file
+
Nothing
+\end
Out:
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/procedures/WhitespaceOnlyWithEnd2.tid b/editions/test/tiddlers/tests/data/procedures/WhitespaceOnlyWithEnd2.tid
index 54d3ebbf6..6e8439289 100644
--- a/editions/test/tiddlers/tests/data/procedures/WhitespaceOnlyWithEnd2.tid
+++ b/editions/test/tiddlers/tests/data/procedures/WhitespaceOnlyWithEnd2.tid
@@ -12,4 +12,4 @@ Out: <>
+
title: ExpectedResult
-
Out:
\ No newline at end of file
+
Out:
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/reserved-wikitext/ReservedWikiText.tid b/editions/test/tiddlers/tests/data/reserved-wikitext/ReservedWikiText.tid
index b9b77f160..267618c45 100644
--- a/editions/test/tiddlers/tests/data/reserved-wikitext/ReservedWikiText.tid
+++ b/editions/test/tiddlers/tests/data/reserved-wikitext/ReservedWikiText.tid
@@ -34,7 +34,7 @@ title: Output
+
title: ExpectedResult
-
+
{%%}
(==)
{% %}
diff --git a/editions/test/tiddlers/tests/data/tabs-macro/expected-test-tabs-horizontal-a.tid b/editions/test/tiddlers/tests/data/tabs-macro/expected-test-tabs-horizontal-a.tid
index 1cb356182..4a2c4348d 100644
--- a/editions/test/tiddlers/tests/data/tabs-macro/expected-test-tabs-horizontal-a.tid
+++ b/editions/test/tiddlers/tests/data/tabs-macro/expected-test-tabs-horizontal-a.tid
@@ -2,4 +2,4 @@ title: expected-test-tabs-horizontal-a
type: text/html
description: Horizontal tabs test - This is the expected HTML output from a test in test-wikitext-tabs-macro.js
-
Text tab 2
\ No newline at end of file
+
Text tab 2
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/tabs-macro/expected-test-tabs-horizontal-all.tid b/editions/test/tiddlers/tests/data/tabs-macro/expected-test-tabs-horizontal-all.tid
index 418510172..c589ec559 100644
--- a/editions/test/tiddlers/tests/data/tabs-macro/expected-test-tabs-horizontal-all.tid
+++ b/editions/test/tiddlers/tests/data/tabs-macro/expected-test-tabs-horizontal-all.tid
@@ -2,4 +2,4 @@ title: expected-test-tabs-horizontal-all
type: text/html
description: Horizontal tabs with all parameters active. This is the expected HTML output from a test in test-wikitext-tabs-macro.js
-
TabTwo
Text tab 2
\ No newline at end of file
+
TabTwo
Text tab 2
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/tabs-macro/expected-test-tabs-vertical.tid b/editions/test/tiddlers/tests/data/tabs-macro/expected-test-tabs-vertical.tid
index 3f1f344f9..479498eaa 100644
--- a/editions/test/tiddlers/tests/data/tabs-macro/expected-test-tabs-vertical.tid
+++ b/editions/test/tiddlers/tests/data/tabs-macro/expected-test-tabs-vertical.tid
@@ -2,4 +2,4 @@ title: expected-test-tabs-vertical
type: text/html
description: Vertical tabs test -- This is the expected HTML output from the test in test-wikitext-tabs-macro.js
-
Text tab 2
\ No newline at end of file
+
Text tab 2
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/this-tiddler/Simple.tid b/editions/test/tiddlers/tests/data/this-tiddler/Simple.tid
index 4aad83c98..897c603f3 100644
--- a/editions/test/tiddlers/tests/data/this-tiddler/Simple.tid
+++ b/editions/test/tiddlers/tests/data/this-tiddler/Simple.tid
@@ -26,4 +26,4 @@ title: Macro
+
title: ExpectedResult
-
(Output)
(Output)
(Output)
\ No newline at end of file
+
(Output)
(Output)
(Output)
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/CustomWidget-ActionWidget.tid b/editions/test/tiddlers/tests/data/transclude/CustomWidget-ActionWidget.tid
index 296aa6931..e19d5b5c2 100644
--- a/editions/test/tiddlers/tests/data/transclude/CustomWidget-ActionWidget.tid
+++ b/editions/test/tiddlers/tests/data/transclude/CustomWidget-ActionWidget.tid
@@ -24,4 +24,4 @@ title: Actions
+
title: ExpectedResult
-
Dingo
\ No newline at end of file
+
Dingo
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/CustomWidget-CodeblockOverride-TextParser.tid b/editions/test/tiddlers/tests/data/transclude/CustomWidget-CodeblockOverride-TextParser.tid
index 484f0c4a3..f4f55182a 100644
--- a/editions/test/tiddlers/tests/data/transclude/CustomWidget-CodeblockOverride-TextParser.tid
+++ b/editions/test/tiddlers/tests/data/transclude/CustomWidget-CodeblockOverride-TextParser.tid
@@ -17,4 +17,4 @@ title: Output
+
title: ExpectedResult
-
hello
\ No newline at end of file
+
hello
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/CustomWidget-Fail.tid b/editions/test/tiddlers/tests/data/transclude/CustomWidget-Fail.tid
index 3d0759013..76ed36b6a 100644
--- a/editions/test/tiddlers/tests/data/transclude/CustomWidget-Fail.tid
+++ b/editions/test/tiddlers/tests/data/transclude/CustomWidget-Fail.tid
@@ -23,4 +23,4 @@ title: Output
+
title: ExpectedResult
-
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Macro-Missing.tid b/editions/test/tiddlers/tests/data/transclude/Macro-Missing.tid
index 8a1a837e5..3d2c611f7 100644
--- a/editions/test/tiddlers/tests/data/transclude/Macro-Missing.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Macro-Missing.tid
@@ -37,4 +37,4 @@ Fallback content
+
title: ExpectedResult
-
Fallback content
Fallback content
Fallback content
Fallback content
Fallback content
Fallback content
\ No newline at end of file
+
Fallback content
Fallback content
Fallback content
Fallback content
Fallback content
Fallback content
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Macro-Plain.tid b/editions/test/tiddlers/tests/data/transclude/Macro-Plain.tid
index 410144153..86de5bdc5 100644
--- a/editions/test/tiddlers/tests/data/transclude/Macro-Plain.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Macro-Plain.tid
@@ -14,4 +14,4 @@ title: Output
+
title: ExpectedResult
-
Jeremy|Jeremy
\ No newline at end of file
+
Jeremy|Jeremy
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Macro-Simple.tid b/editions/test/tiddlers/tests/data/transclude/Macro-Simple.tid
index 71db5efe4..b7b718959 100644
--- a/editions/test/tiddlers/tests/data/transclude/Macro-Simple.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Macro-Simple.tid
@@ -23,4 +23,4 @@ It is $one$ and $two$ or <<__one__>> and <<__two__>>.
+
title: ExpectedResult
-
It is red and green or red and green.
It is red and green or red and green.
It is orange and green or orange and green.
It is pink and green or pink and green.
It is purple and pink or purple and pink.
\ No newline at end of file
+
It is red and green or red and green.
It is red and green or red and green.
It is orange and green or orange and green.
It is pink and green or pink and green.
It is purple and pink or purple and pink.
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/MissingTarget.tid b/editions/test/tiddlers/tests/data/transclude/MissingTarget.tid
index 8bdc86eaa..5f9892ed4 100644
--- a/editions/test/tiddlers/tests/data/transclude/MissingTarget.tid
+++ b/editions/test/tiddlers/tests/data/transclude/MissingTarget.tid
@@ -45,4 +45,4 @@ title: TiddlerOne
+
title: ExpectedResult
-
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Parameterised-Mode.tid b/editions/test/tiddlers/tests/data/transclude/Parameterised-Mode.tid
index 04f5bbb04..4605223a7 100644
--- a/editions/test/tiddlers/tests/data/transclude/Parameterised-Mode.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Parameterised-Mode.tid
@@ -26,4 +26,4 @@ title: TiddlerOne
+
title: ExpectedResult
-
block
inline
\ No newline at end of file
+
block
inline
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Parameterised-Name-Values.tid b/editions/test/tiddlers/tests/data/transclude/Parameterised-Name-Values.tid
index 9d62a7897..33eb3d505 100644
--- a/editions/test/tiddlers/tests/data/transclude/Parameterised-Name-Values.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Parameterised-Name-Values.tid
@@ -31,4 +31,4 @@ title: TiddlerTwo
+
title: ExpectedResult
-
{0:}{1:}{2:}
{0:Ferret}
{0:Butterfly}{1:Moth}
{0:Beetle}{1:Scorpion}{2:Snake}
({$one:Scorpion}{two:Snake}{zero:Beetle})
\ No newline at end of file
+
{0:}{1:}{2:}
{0:Ferret}
{0:Butterfly}{1:Moth}
{0:Beetle}{1:Scorpion}{2:Snake}
({$one:Scorpion}{two:Snake}{zero:Beetle})
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Parameterised-ParseTreeNodes.tid b/editions/test/tiddlers/tests/data/transclude/Parameterised-ParseTreeNodes.tid
index 916e2abfb..5638838da 100644
--- a/editions/test/tiddlers/tests/data/transclude/Parameterised-ParseTreeNodes.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Parameterised-ParseTreeNodes.tid
@@ -26,4 +26,4 @@ title: TiddlerOne
+
title: ExpectedResult
-
[{"type":"element","tag":"p","children":[{"type":"text","text":"This is a block","start":68,"end":83}],"start":68,"end":83}]
[{"type":"text","text":"This is inline","start":136,"end":152}]
\ No newline at end of file
+
[{"type":"element","tag":"p","attributes":{"dir":{"type":"string","value":"auto"}},"children":[{"type":"text","text":"This is a block","start":68,"end":83}],"start":68,"end":83}]
[{"type":"text","text":"This is inline","start":136,"end":152}]
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Parameterised-Positional-Shortcut-Parameters.tid b/editions/test/tiddlers/tests/data/transclude/Parameterised-Positional-Shortcut-Parameters.tid
index abf444adb..49e82cbc1 100644
--- a/editions/test/tiddlers/tests/data/transclude/Parameterised-Positional-Shortcut-Parameters.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Parameterised-Positional-Shortcut-Parameters.tid
@@ -26,4 +26,4 @@ title: TiddlerTwo
+
title: ExpectedResult
-
[{Jaguar}{Lizard}{Mole}]
[{Ferret}{Lizard}{Mole}]
[{Butterfly}{Moth}{Mole}]
[{Beetle}{Scorpion}{Snake}]
([{Beetle}{Scorpion}{Snake}])
\ No newline at end of file
+
[{Jaguar}{Lizard}{Mole}]
[{Ferret}{Lizard}{Mole}]
[{Butterfly}{Moth}{Mole}]
[{Beetle}{Scorpion}{Snake}]
([{Beetle}{Scorpion}{Snake}])
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Parameterised-Positional-Shortcut.tid b/editions/test/tiddlers/tests/data/transclude/Parameterised-Positional-Shortcut.tid
index 7792e6c66..a7dbc45a9 100644
--- a/editions/test/tiddlers/tests/data/transclude/Parameterised-Positional-Shortcut.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Parameterised-Positional-Shortcut.tid
@@ -26,4 +26,4 @@ title: TiddlerTwo
+
title: ExpectedResult
-
[{Jaguar}{Lizard}{Mole}]
[{Ferret}{Lizard}{Mole}]
[{Butterfly}{Moth}{Mole}]
[{Beetle}{Scorpion}{Snake}]
([{Beetle}{Scorpion}{Snake}])
\ No newline at end of file
+
[{Jaguar}{Lizard}{Mole}]
[{Ferret}{Lizard}{Mole}]
[{Butterfly}{Moth}{Mole}]
[{Beetle}{Scorpion}{Snake}]
([{Beetle}{Scorpion}{Snake}])
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Parameterised-Positional-Variables.tid b/editions/test/tiddlers/tests/data/transclude/Parameterised-Positional-Variables.tid
index ad2b7be52..3da5aa606 100644
--- a/editions/test/tiddlers/tests/data/transclude/Parameterised-Positional-Variables.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Parameterised-Positional-Variables.tid
@@ -27,4 +27,4 @@ title: Output
+
title: ExpectedResult
-
(Functions:f1,f1,f1)(Macros:banana,banana,banana)
\ No newline at end of file
+
(Functions:f1,f1,f1)(Macros:banana,banana,banana)
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Parameterised-Positional.tid b/editions/test/tiddlers/tests/data/transclude/Parameterised-Positional.tid
index d7eb9090e..5a9453826 100644
--- a/editions/test/tiddlers/tests/data/transclude/Parameterised-Positional.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Parameterised-Positional.tid
@@ -23,4 +23,4 @@ title: TiddlerOne
+
title: ExpectedResult
-
FerretFerretPigeonPigeonFerretFerretJaguar
\ No newline at end of file
+
FerretFerretPigeonPigeonFerretFerretJaguar
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Parameterised-Shortcut-Parameters.tid b/editions/test/tiddlers/tests/data/transclude/Parameterised-Shortcut-Parameters.tid
index 375964199..361c0a125 100644
--- a/editions/test/tiddlers/tests/data/transclude/Parameterised-Shortcut-Parameters.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Parameterised-Shortcut-Parameters.tid
@@ -17,4 +17,4 @@ title: TiddlerOne
+
title: ExpectedResult
-
FerretJaguar
\ No newline at end of file
+
FerretJaguar
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Parameterised-Shortcut-ParametersIndented.tid b/editions/test/tiddlers/tests/data/transclude/Parameterised-Shortcut-ParametersIndented.tid
index 90e9a90aa..8eec2c181 100644
--- a/editions/test/tiddlers/tests/data/transclude/Parameterised-Shortcut-ParametersIndented.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Parameterised-Shortcut-ParametersIndented.tid
@@ -17,4 +17,4 @@ title: TiddlerOne
+
title: ExpectedResult
-
FerretJaguar
\ No newline at end of file
+
FerretJaguar
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Parameterised-Shortcut.tid b/editions/test/tiddlers/tests/data/transclude/Parameterised-Shortcut.tid
index 0499cf2d6..61c61a4dc 100644
--- a/editions/test/tiddlers/tests/data/transclude/Parameterised-Shortcut.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Parameterised-Shortcut.tid
@@ -18,4 +18,4 @@ title: Output
+
title: ExpectedResult
-
{Ferret}{Jaguar}{Rat}{Mouse}
\ No newline at end of file
+
{Ferret}{Jaguar}{Rat}{Mouse}
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Parameterised-Simple.tid b/editions/test/tiddlers/tests/data/transclude/Parameterised-Simple.tid
index 0268f9e59..464be6d3c 100644
--- a/editions/test/tiddlers/tests/data/transclude/Parameterised-Simple.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Parameterised-Simple.tid
@@ -23,4 +23,4 @@ title: TiddlerOne
+
title: ExpectedResult
-
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Parameterised-SlotFillParseTreeNodes.tid b/editions/test/tiddlers/tests/data/transclude/Parameterised-SlotFillParseTreeNodes.tid
index 679748375..6b5fa2f45 100644
--- a/editions/test/tiddlers/tests/data/transclude/Parameterised-SlotFillParseTreeNodes.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Parameterised-SlotFillParseTreeNodes.tid
@@ -26,4 +26,4 @@ title: TiddlerOne
+
title: ExpectedResult
-
one,ts-raw,two
one,ts-raw
\ No newline at end of file
+
one,ts-raw,two
one,ts-raw
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Parameterised-Slotted-Missing.tid b/editions/test/tiddlers/tests/data/transclude/Parameterised-Slotted-Missing.tid
index fe399d572..8ce4f7b26 100644
--- a/editions/test/tiddlers/tests/data/transclude/Parameterised-Slotted-Missing.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Parameterised-Slotted-Missing.tid
@@ -21,4 +21,4 @@ title: TiddlerOne
+
title: ExpectedResult
-
FerretWhale
\ No newline at end of file
+
FerretWhale
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Parameterised-Slotted.tid b/editions/test/tiddlers/tests/data/transclude/Parameterised-Slotted.tid
index c795621ef..1e79fd793 100644
--- a/editions/test/tiddlers/tests/data/transclude/Parameterised-Slotted.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Parameterised-Slotted.tid
@@ -24,4 +24,4 @@ title: TiddlerOne
+
title: ExpectedResult
-
FerretHippopotamus
\ No newline at end of file
+
FerretHippopotamus
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Procedures-Double-Underscore.tid b/editions/test/tiddlers/tests/data/transclude/Procedures-Double-Underscore.tid
index f22efb4f6..e56078807 100644
--- a/editions/test/tiddlers/tests/data/transclude/Procedures-Double-Underscore.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Procedures-Double-Underscore.tid
@@ -23,4 +23,4 @@ It is $one$ and $two$<<__one__>><<__two__>>.
+
title: ExpectedResult
-
It is $one$ and $two$.
It is $one$ and $two$.
It is $one$ and $two$.
It is $one$ and $two$.
It is $one$ and $two$.
\ No newline at end of file
+
It is $one$ and $two$.
It is $one$ and $two$.
It is $one$ and $two$.
It is $one$ and $two$.
It is $one$ and $two$.
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Procedures-Whitespace.tid b/editions/test/tiddlers/tests/data/transclude/Procedures-Whitespace.tid
index d2bded70c..9edd03a9e 100644
--- a/editions/test/tiddlers/tests/data/transclude/Procedures-Whitespace.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Procedures-Whitespace.tid
@@ -20,6 +20,6 @@ This is a sentence
+
title: ExpectedResult
-
This is a sentence
+
This is a sentence
[This is a sentence]
[This is a sentence ]
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Procedures-Whitespace2.tid b/editions/test/tiddlers/tests/data/transclude/Procedures-Whitespace2.tid
index e6cd673bc..4af356b2e 100644
--- a/editions/test/tiddlers/tests/data/transclude/Procedures-Whitespace2.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Procedures-Whitespace2.tid
@@ -19,7 +19,7 @@ This is a sentence
+
title: ExpectedResult
-
This is a sentence
+
This is a sentence
[This is a sentence ]
[This is a sentence ]
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Procedures-Whitespace3.tid b/editions/test/tiddlers/tests/data/transclude/Procedures-Whitespace3.tid
index b043bceda..ef99d5ad4 100644
--- a/editions/test/tiddlers/tests/data/transclude/Procedures-Whitespace3.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Procedures-Whitespace3.tid
@@ -24,7 +24,7 @@ This is a sentence
+
title: ExpectedResult
-
This is a sentence
+
This is a sentence
[This is a sentence ]
[This is a sentence ]
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Typed.tid b/editions/test/tiddlers/tests/data/transclude/Typed.tid
index c99664b59..cf3c62daa 100644
--- a/editions/test/tiddlers/tests/data/transclude/Typed.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Typed.tid
@@ -29,10 +29,10 @@ testindex: This is ''wikitext''
+
title: ExpectedResult
-
This is wikitext
+
This is wikitext
-
-
This is ''wikitext''
This is wikitext
+
This is ''wikitext''
This is wikitext
-
-
This is ''wikitext''
This is wikitext
+
This is ''wikitext''
This is wikitext
-
This is ''wikitext''
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Variable-Refreshing.tid b/editions/test/tiddlers/tests/data/transclude/Variable-Refreshing.tid
index c1867c2fc..48ab3a871 100644
--- a/editions/test/tiddlers/tests/data/transclude/Variable-Refreshing.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Variable-Refreshing.tid
@@ -24,4 +24,4 @@ title: Actions
+
title: ExpectedResult
-
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
\ No newline at end of file
+
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/transclude/Variable-Static.tid b/editions/test/tiddlers/tests/data/transclude/Variable-Static.tid
index 4158569c6..2a71de7e6 100644
--- a/editions/test/tiddlers/tests/data/transclude/Variable-Static.tid
+++ b/editions/test/tiddlers/tests/data/transclude/Variable-Static.tid
@@ -12,4 +12,4 @@ items: 1 2 3 4 5 6 7 8 9 10
+
title: ExpectedResult
-
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
\ No newline at end of file
+
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/widgets/DataAttributes/ButtonWidget-DataAttributes.tid b/editions/test/tiddlers/tests/data/widgets/DataAttributes/ButtonWidget-DataAttributes.tid
index da3d7080a..e291533d8 100644
--- a/editions/test/tiddlers/tests/data/widgets/DataAttributes/ButtonWidget-DataAttributes.tid
+++ b/editions/test/tiddlers/tests/data/widgets/DataAttributes/ButtonWidget-DataAttributes.tid
@@ -24,4 +24,4 @@ Title1
+
title: ExpectedResult
-
my tiddler
hello
\ No newline at end of file
+
my tiddler
hello
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/widgets/DataAttributes/CheckboxWidget-DataAttributes.tid b/editions/test/tiddlers/tests/data/widgets/DataAttributes/CheckboxWidget-DataAttributes.tid
index 521fa3a13..0bb862e79 100644
--- a/editions/test/tiddlers/tests/data/widgets/DataAttributes/CheckboxWidget-DataAttributes.tid
+++ b/editions/test/tiddlers/tests/data/widgets/DataAttributes/CheckboxWidget-DataAttributes.tid
@@ -19,4 +19,4 @@ Title1
+
title: ExpectedResult
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/widgets/DataAttributes/DraggableWidget-DataAttributes.tid b/editions/test/tiddlers/tests/data/widgets/DataAttributes/DraggableWidget-DataAttributes.tid
index feeb89ded..cc801f1a0 100644
--- a/editions/test/tiddlers/tests/data/widgets/DataAttributes/DraggableWidget-DataAttributes.tid
+++ b/editions/test/tiddlers/tests/data/widgets/DataAttributes/DraggableWidget-DataAttributes.tid
@@ -24,4 +24,4 @@ Title1
+
title: ExpectedResult
-
my tiddler
hello
\ No newline at end of file
+
my tiddler
hello
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/widgets/DataAttributes/DroppableWidget-DataAttributes.tid b/editions/test/tiddlers/tests/data/widgets/DataAttributes/DroppableWidget-DataAttributes.tid
index 3c7284eb1..165c18a61 100644
--- a/editions/test/tiddlers/tests/data/widgets/DataAttributes/DroppableWidget-DataAttributes.tid
+++ b/editions/test/tiddlers/tests/data/widgets/DataAttributes/DroppableWidget-DataAttributes.tid
@@ -24,4 +24,4 @@ Title1
+
title: ExpectedResult
-
my tiddler
hello
\ No newline at end of file
+
my tiddler
hello
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/widgets/DataAttributes/LinkWidget-DataAttributes.tid b/editions/test/tiddlers/tests/data/widgets/DataAttributes/LinkWidget-DataAttributes.tid
index e99e265bb..2c243fa66 100644
--- a/editions/test/tiddlers/tests/data/widgets/DataAttributes/LinkWidget-DataAttributes.tid
+++ b/editions/test/tiddlers/tests/data/widgets/DataAttributes/LinkWidget-DataAttributes.tid
@@ -24,4 +24,4 @@ Title1
+
title: ExpectedResult
-
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/widgets/DataAttributes/OrderedStyleAttributes.tid b/editions/test/tiddlers/tests/data/widgets/DataAttributes/OrderedStyleAttributes.tid
index 2f6d2cb1a..0eb7e91db 100644
--- a/editions/test/tiddlers/tests/data/widgets/DataAttributes/OrderedStyleAttributes.tid
+++ b/editions/test/tiddlers/tests/data/widgets/DataAttributes/OrderedStyleAttributes.tid
@@ -12,4 +12,4 @@ hello
+
title: ExpectedResult
-
hello
\ No newline at end of file
+
hello
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/widgets/DataAttributes/SelectWidget-DataAttributes.tid b/editions/test/tiddlers/tests/data/widgets/DataAttributes/SelectWidget-DataAttributes.tid
index e2006312b..7dc5c73d6 100644
--- a/editions/test/tiddlers/tests/data/widgets/DataAttributes/SelectWidget-DataAttributes.tid
+++ b/editions/test/tiddlers/tests/data/widgets/DataAttributes/SelectWidget-DataAttributes.tid
@@ -24,4 +24,4 @@ Title1
+
title: ExpectedResult
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/widgets/ElementWidgetEventAttributes.tid b/editions/test/tiddlers/tests/data/widgets/ElementWidgetEventAttributes.tid
index 4c2f6eb04..356ff6010 100644
--- a/editions/test/tiddlers/tests/data/widgets/ElementWidgetEventAttributes.tid
+++ b/editions/test/tiddlers/tests/data/widgets/ElementWidgetEventAttributes.tid
@@ -12,4 +12,4 @@ TiddlyWiki
+
title: ExpectedResult
-
TiddlyWiki
\ No newline at end of file
+
TiddlyWiki
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/widgets/ElementWidgetStyleAttributes.tid b/editions/test/tiddlers/tests/data/widgets/ElementWidgetStyleAttributes.tid
index a36a51323..f2424465c 100644
--- a/editions/test/tiddlers/tests/data/widgets/ElementWidgetStyleAttributes.tid
+++ b/editions/test/tiddlers/tests/data/widgets/ElementWidgetStyleAttributes.tid
@@ -12,4 +12,4 @@ TiddlyWiki
+
title: ExpectedResult
-
TiddlyWiki
\ No newline at end of file
+
TiddlyWiki
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/widgets/ElementWidgetStyleAttributes2.tid b/editions/test/tiddlers/tests/data/widgets/ElementWidgetStyleAttributes2.tid
index 6b6a2f953..a60ef99f6 100644
--- a/editions/test/tiddlers/tests/data/widgets/ElementWidgetStyleAttributes2.tid
+++ b/editions/test/tiddlers/tests/data/widgets/ElementWidgetStyleAttributes2.tid
@@ -12,4 +12,4 @@ TiddlyWiki
+
title: ExpectedResult
-
TiddlyWiki
\ No newline at end of file
+
TiddlyWiki
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/widgets/LetWidgetSelfReferences.tid b/editions/test/tiddlers/tests/data/widgets/LetWidgetSelfReferences.tid
index b81fc7d75..fcea51f0e 100644
--- a/editions/test/tiddlers/tests/data/widgets/LetWidgetSelfReferences.tid
+++ b/editions/test/tiddlers/tests/data/widgets/LetWidgetSelfReferences.tid
@@ -12,4 +12,4 @@ title: Output
+
title: ExpectedResult
-
bb
\ No newline at end of file
+
bb
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/widgets/LetWidgetUndefinedVariable.tid b/editions/test/tiddlers/tests/data/widgets/LetWidgetUndefinedVariable.tid
index e6163d915..c5469af57 100644
--- a/editions/test/tiddlers/tests/data/widgets/LetWidgetUndefinedVariable.tid
+++ b/editions/test/tiddlers/tests/data/widgets/LetWidgetUndefinedVariable.tid
@@ -12,4 +12,4 @@ title: Output
+
title: ExpectedResult
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/widgets/SubstitutedAttributes.tid b/editions/test/tiddlers/tests/data/widgets/SubstitutedAttributes.tid
index 9d5538573..1cd48f8ae 100644
--- a/editions/test/tiddlers/tests/data/widgets/SubstitutedAttributes.tid
+++ b/editions/test/tiddlers/tests/data/widgets/SubstitutedAttributes.tid
@@ -17,5 +17,5 @@ ${ [[Hello]addsuffix[There]] }$` attrib=`myvalue` otherattrib=`$(1)$` blankattri
+
title: ExpectedResult
-
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-field-format-text-doubleurlencoded.tid b/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-field-format-text-doubleurlencoded.tid
index 3cb11f6eb..818b76501 100644
--- a/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-field-format-text-doubleurlencoded.tid
+++ b/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-field-format-text-doubleurlencoded.tid
@@ -16,7 +16,7 @@ title: Output
+
title: ExpectedResult
-
Some%2520text%2520%253E%2520%2522aaa%2522
+
Some%2520text%2520%253E%2520%2522aaa%2522
—
Some text > "aaa"
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-field-format-text-urlencoded.tid b/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-field-format-text-urlencoded.tid
index f0e5eb948..48834ca7c 100644
--- a/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-field-format-text-urlencoded.tid
+++ b/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-field-format-text-urlencoded.tid
@@ -16,7 +16,7 @@ title: Output
+
title: ExpectedResult
-
Some%20text%20%3E%20%22aaa%22
+
Some%20text%20%3E%20%22aaa%22
—
Some text > "aaa"
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-field-format-text.tid b/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-field-format-text.tid
index 8dafbdb03..ffe5933ec 100644
--- a/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-field-format-text.tid
+++ b/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-field-format-text.tid
@@ -16,4 +16,4 @@ title: Output
+
title: ExpectedResult
-[[HelloThere]]
[[HelloThere]]
\ No newline at end of file
+[[HelloThere]]
[[HelloThere]]
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-field-index.tid b/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-field-index.tid
index 2d7073728..767cf2915 100644
--- a/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-field-index.tid
+++ b/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-field-index.tid
@@ -25,4 +25,4 @@ title: Output
+
title: ExpectedResult
-value 01
value 02
\ No newline at end of file
+value 01
value 02
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-field-text.tid b/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-field-text.tid
index b7ebd59a6..b2435f4a4 100644
--- a/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-field-text.tid
+++ b/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-field-text.tid
@@ -15,4 +15,4 @@ title: Output
+
title: ExpectedResult
-Some text
Some text
\ No newline at end of file
+Some text
Some text
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-format-date-template.tid b/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-format-date-template.tid
index 493876362..09815ed6d 100644
--- a/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-format-date-template.tid
+++ b/editions/test/tiddlers/tests/data/widgets/view/ViewWidget-format-date-template.tid
@@ -17,4 +17,4 @@ title: Output
+
title: ExpectedResult
-
20th September 2024 at 4:22pm
\ No newline at end of file
+
20th September 2024 at 4:22pm
\ No newline at end of file
diff --git a/editions/test/tiddlers/tests/test-widget.js b/editions/test/tiddlers/tests/test-widget.js
index 7d1cbc329..87ed3860e 100755
--- a/editions/test/tiddlers/tests/test-widget.js
+++ b/editions/test/tiddlers/tests/test-widget.js
@@ -224,7 +224,7 @@ describe("Widget module", function() {
// Render the widget node to the DOM
var wrapper = renderWidgetNode(widgetNode);
// Test the rendering
- expect(wrapper.innerHTML).toBe("
My Jolly Old World is Jolly
");
+ expect(wrapper.innerHTML).toBe("
My Jolly Old World is Jolly
");
});
it("should render the view widget", function() {
@@ -239,7 +239,7 @@ describe("Widget module", function() {
// Render the widget node to the DOM
var wrapper = renderWidgetNode(widgetNode);
// Test the rendering
- expect(wrapper.innerHTML).toBe("
Jolly Old World
");
+ expect(wrapper.innerHTML).toBe("
Jolly Old World
");
// Test the sequence numbers in the DOM
expect(wrapper.sequenceNumber).toBe(0);
expect(wrapper.children[0].sequenceNumber).toBe(1);
@@ -249,7 +249,7 @@ describe("Widget module", function() {
// Refresh
refreshWidgetNode(widgetNode,wrapper,["TiddlerOne"]);
// Test the refreshing
- expect(wrapper.innerHTML).toBe("
World-wide Jelly
");
+ expect(wrapper.innerHTML).toBe("
World-wide Jelly
");
// Test the sequence numbers in the DOM
expect(wrapper.sequenceNumber).toBe(0);
expect(wrapper.children[0].sequenceNumber).toBe(1);
@@ -271,13 +271,13 @@ describe("Widget module", function() {
// Render the widget node to the DOM
var wrapper = renderWidgetNode(widgetNode);
// Test the rendering
- expect(wrapper.innerHTML).toBe("
My Jolly Old World is Jolly
");
+ expect(wrapper.innerHTML).toBe("
My Jolly Old World is Jolly
");
// Change the transcluded tiddler
wiki.addTiddler({title: "TiddlerFour", text: "TiddlerOne"});
// Refresh
refreshWidgetNode(widgetNode,wrapper,["TiddlerFour"]);
// Test the refreshing
- expect(wrapper.innerHTML).toBe("
My Jolly Old World is Jolly
");
+ expect(wrapper.innerHTML).toBe("
My Jolly Old World is Jolly
");
// Test the sequence numbers in the DOM
expect(wrapper.sequenceNumber).toBe(0);
expect(wrapper.children[0].sequenceNumber).toBe(1);
@@ -303,7 +303,7 @@ describe("Widget module", function() {
"<$transclude field=<>/>$let>";
var widgetNode = createWidgetNode(parseText(text,wiki),wiki);
var wrapper = renderWidgetNode(widgetNode);
- expect(wrapper.innerHTML).toBe("
Happy Result
");
+ expect(wrapper.innerHTML).toBe("
Happy Result
");
// This is important. $Let needs to be aware enough not to let its
// own variables interfere with its ability to recognise no change.
@@ -328,7 +328,7 @@ describe("Widget module", function() {
// Render the widget node to the DOM
var wrapper = renderWidgetNode(widgetNode);
// Test the rendering
- expect(wrapper.innerHTML).toBe("
Content
");
+ expect(wrapper.innerHTML).toBe("
Content
");
});
it("should deal with built-in macros", function() {
@@ -343,7 +343,7 @@ describe("Widget module", function() {
// Render the widget node to the DOM
var wrapper = renderWidgetNode(widgetNode);
// Test the rendering
- expect(wrapper.innerHTML).toBe("
");
});
/* This test reproduces issue #4693. */
@@ -379,13 +379,13 @@ describe("Widget module", function() {
// Render the widget node to the DOM
var wrapper = renderWidgetNode(widgetNode);
// Test the rendering
- expect(wrapper.innerHTML).toBe("
TiddlerFourTiddlerOneTiddlerThreeTiddlerTwo
");
+ expect(wrapper.innerHTML).toBe("
TiddlerFourTiddlerOneTiddlerThreeTiddlerTwo
");
// Add another tiddler
wiki.addTiddler({title: "TiddlerFive", text: "Jalapeno Peppers"});
// Refresh
refreshWidgetNode(widgetNode,wrapper,["TiddlerFive"]);
// Test the refreshing
- expect(wrapper.innerHTML).toBe("
");
// Test the sequence numbers in the DOM
expect(wrapper.sequenceNumber).toBe(0);
expect(wrapper.children[0].sequenceNumber).toBe(1);
@@ -399,7 +399,7 @@ describe("Widget module", function() {
// Refresh
refreshWidgetNode(widgetNode,wrapper,["TiddlerThree"]);
// Test the refreshing
- expect(wrapper.innerHTML).toBe("
TiddlerFiveTiddlerFourTiddlerOneTiddlerTwo
");
+ expect(wrapper.innerHTML).toBe("
TiddlerFiveTiddlerFourTiddlerOneTiddlerTwo
");
// Test the sequence numbers in the DOM
expect(wrapper.sequenceNumber).toBe(0);
expect(wrapper.children[0].sequenceNumber).toBe(1);
@@ -412,7 +412,7 @@ describe("Widget module", function() {
// Refresh
refreshWidgetNode(widgetNode,wrapper,["TiddlerThree"]);
// Test the refreshing
- expect(wrapper.innerHTML).toBe("
");
// Test the sequence numbers in the DOM
expect(wrapper.sequenceNumber).toBe(0);
expect(wrapper.children[0].sequenceNumber).toBe(1);
@@ -439,7 +439,7 @@ describe("Widget module", function() {
// Render the widget node to the DOM
var wrapper = renderWidgetNode(widgetNode);
// Test the rendering
- expect(wrapper.innerHTML).toBe("
Lemon Squash1yesnoJolly Old World2nonoGolly Gosh3nonoWorldly Old Jelly4noyes
");
+ expect(wrapper.innerHTML).toBe("
Lemon Squash1yesnoJolly Old World2nonoGolly Gosh3nonoWorldly Old Jelly4noyes
");
// Test the sequence numbers in the DOM
expect(wrapper.sequenceNumber).toBe(0);
expect(wrapper.children[0].sequenceNumber).toBe(1);
@@ -464,7 +464,7 @@ describe("Widget module", function() {
// Refresh
refreshWidgetNode(widgetNode,wrapper,["TiddlerFive"]);
// Test the refreshing
- expect(wrapper.innerHTML).toBe("
Jalapeno Peppers1yesnoLemon Squash2nonoJolly Old World3nonoGolly Gosh4nonoWorldly Old Jelly5noyes
");
+ expect(wrapper.innerHTML).toBe("
Jalapeno Peppers1yesnoLemon Squash2nonoJolly Old World3nonoGolly Gosh4nonoWorldly Old Jelly5noyes
");
// Test the sequence numbers in the DOM
expect(wrapper.sequenceNumber).toBe(0);
expect(wrapper.children[0].sequenceNumber).toBe(1);
@@ -493,7 +493,7 @@ describe("Widget module", function() {
// Refresh
refreshWidgetNode(widgetNode,wrapper,["TiddlerThree"]);
// Test the refreshing
- expect(wrapper.innerHTML).toBe("
Jalapeno Peppers1yesnoLemon Squash2nonoJolly Old World3nonoWorldly Old Jelly4noyes
");
+ expect(wrapper.innerHTML).toBe("
Jalapeno Peppers1yesnoLemon Squash2nonoJolly Old World3nonoWorldly Old Jelly4noyes
");
// Test the sequence numbers in the DOM
expect(wrapper.sequenceNumber).toBe(0);
expect(wrapper.children[0].sequenceNumber).toBe(1);
@@ -518,7 +518,7 @@ describe("Widget module", function() {
// Refresh
refreshWidgetNode(widgetNode,wrapper,["TiddlerThree"]);
// Test the refreshing
- expect(wrapper.innerHTML).toBe("
Jalapeno Peppers1yesnoLemon Squash2nonoJolly Old World3nonoSomething4nonoWorldly Old Jelly5noyes
");
+ expect(wrapper.innerHTML).toBe("
Jalapeno Peppers1yesnoLemon Squash2nonoJolly Old World3nonoSomething4nonoWorldly Old Jelly5noyes
");
// Test the sequence numbers in the DOM
expect(wrapper.sequenceNumber).toBe(0);
expect(wrapper.children[0].sequenceNumber).toBe(1);
@@ -543,7 +543,7 @@ describe("Widget module", function() {
//Refresh
refreshWidgetNode(widgetNode,wrapper,["TiddlerTwo"]);
//Test the refreshing
- expect(wrapper.innerHTML).toBe("
Jalapeno Peppers1yesnoLemon Squash2nonoJolly Old World3nonoSomething4noyes
");
+ expect(wrapper.innerHTML).toBe("
Jalapeno Peppers1yesnoLemon Squash2nonoJolly Old World3nonoSomething4noyes
");
// Test the sequence numbers in the DOM
expect(wrapper.sequenceNumber).toBe(0);
expect(wrapper.children[0].sequenceNumber).toBe(1);
@@ -575,11 +575,11 @@ describe("Widget module", function() {
// Render the widget node to the DOM
var wrapper = renderWidgetNode(widgetNode);
// Test the rendering
- expect(wrapper.innerHTML).toBe("
" + oldList.split(' ').join(', ') + "
");
+ expect(wrapper.innerHTML).toBe("
" + oldList.split(' ').join(', ') + "
");
// Change the list and ensure new rendering is still right
wiki.addTiddler({title: "Numbers", text: "", list: newList});
refreshWidgetNode(widgetNode,wrapper,["Numbers"]);
- expect(wrapper.innerHTML).toBe("
" + newList.split(' ').join(', ') + "
");
+ expect(wrapper.innerHTML).toBe("
" + newList.split(' ').join(', ') + "
");
}
}
@@ -614,11 +614,11 @@ describe("Widget module", function() {
// Render the widget node to the DOM
var wrapper = renderWidgetNode(widgetNode);
// Test the rendering
- expect(wrapper.innerHTML).toBe("
" + oldList.split(' ').join(', ') + "
");
+ expect(wrapper.innerHTML).toBe("
" + oldList.split(' ').join(', ') + "
");
// Append a number
wiki.addTiddler({title: "Numbers", text: "", list: newList});
refreshWidgetNode(widgetNode,wrapper,["Numbers"]);
- expect(wrapper.innerHTML).toBe("
" + newList.split(' ').join(', ') + "
");
+ expect(wrapper.innerHTML).toBe("
" + newList.split(' ').join(', ') + "
");
}
}
@@ -642,7 +642,7 @@ describe("Widget module", function() {
// Render the widget node to the DOM
var wrapper = renderWidgetNode(widgetNode);
// Test the rendering
- expect(wrapper.innerHTML).toBe("
");
// Check the next siblings of each of the list elements
var listWidget = widgetNode.children[0].children[0];
// Add another tiddler
@@ -650,7 +650,7 @@ describe("Widget module", function() {
// Refresh
refreshWidgetNode(widgetNode,wrapper,["TiddlerFive"]);
// Test the refreshing
- expect(wrapper.innerHTML).toBe("
");
// Test the sequence numbers in the DOM
expect(wrapper.sequenceNumber).toBe(0);
expect(wrapper.children[0].sequenceNumber).toBe(1);
@@ -664,7 +664,7 @@ describe("Widget module", function() {
// Refresh
refreshWidgetNode(widgetNode,wrapper,["TiddlerThree"]);
// Test the refreshing
- expect(wrapper.innerHTML).toBe("
");
// Test the sequence numbers in the DOM
expect(wrapper.sequenceNumber).toBe(0);
expect(wrapper.children[0].sequenceNumber).toBe(1);
@@ -677,7 +677,7 @@ describe("Widget module", function() {
// Refresh
refreshWidgetNode(widgetNode,wrapper,["TiddlerThree"]);
// Test the refreshing
- expect(wrapper.innerHTML).toBe("
");
// Test the sequence numbers in the DOM
expect(wrapper.sequenceNumber).toBe(0);
expect(wrapper.children[0].sequenceNumber).toBe(1);
@@ -691,7 +691,7 @@ describe("Widget module", function() {
// Refresh
refreshWidgetNode(widgetNode,wrapper,["YetAnotherTiddler"]);
// Test the refreshing
- expect(wrapper.innerHTML).toBe("
");
// Test the sequence numbers in the DOM
expect(wrapper.sequenceNumber).toBe(0);
expect(wrapper.children[0].sequenceNumber).toBe(1);
@@ -719,7 +719,7 @@ describe("Widget module", function() {
var wrapper = renderWidgetNode(widgetNode);
//console.log(require("util").inspect(widgetNode,{depth:8,colors:true}));
// Test the rendering
- expect(wrapper.innerHTML).toBe("
");
});
it("should deal with the list widget and empty lists", function() {
@@ -730,7 +730,7 @@ describe("Widget module", function() {
// Render the widget node to the DOM
var wrapper = renderWidgetNode(widgetNode);
// Test the rendering
- expect(wrapper.innerHTML).toBe("
nothing
");
+ expect(wrapper.innerHTML).toBe("
nothing
");
});
it("should refresh lists that become empty", function() {
@@ -748,7 +748,7 @@ describe("Widget module", function() {
// Render the widget node to the DOM
var wrapper = renderWidgetNode(widgetNode);
// Test the rendering
- expect(wrapper.innerHTML).toBe("
TiddlerFourTiddlerOneTiddlerThreeTiddlerTwo
");
+ expect(wrapper.innerHTML).toBe("
TiddlerFourTiddlerOneTiddlerThreeTiddlerTwo
");
// Get rid of the tiddlers
wiki.deleteTiddler("TiddlerOne");
wiki.deleteTiddler("TiddlerTwo");
@@ -757,7 +757,7 @@ describe("Widget module", function() {
// Refresh
refreshWidgetNode(widgetNode,wrapper,["TiddlerOne","TiddlerTwo","TiddlerThree","TiddlerFour"]);
// Test the refreshing
- expect(wrapper.innerHTML).toBe("
nothing
");
+ expect(wrapper.innerHTML).toBe("
nothing
");
});
/**This test confirms that imported set variables properly refresh
@@ -776,11 +776,11 @@ describe("Widget module", function() {
// Render the widget node to the DOM
var wrapper = renderWidgetNode(widgetNode);
// Test the rendering
- expect(wrapper.innerHTML).toBe("
");
});
it("should support mixed setWidgets and macros when importing", function() {
@@ -796,7 +796,7 @@ describe("Widget module", function() {
// Render the widget node to the DOM
var wrapper = renderWidgetNode(widgetNode);
// Test the rendering
- expect(wrapper.innerHTML).toBe("
Aval Bval Cval
");
+ expect(wrapper.innerHTML).toBe("
Aval Bval Cval
");
});
it("should skip parameters widgets when importing", function() {
@@ -810,7 +810,7 @@ describe("Widget module", function() {
// Render the widget node to the DOM
var wrapper = renderWidgetNode(widgetNode);
// Test the rendering
- expect(wrapper.innerHTML).toBe("
Bval
");
+ expect(wrapper.innerHTML).toBe("
Bval
");
});
it("should use default $parameters if directly rendered", function() {
@@ -820,7 +820,7 @@ describe("Widget module", function() {
// Render the widget node to the DOM
var wrapper = renderWidgetNode(widgetNode);
// nothing = true in this attribute form because valueless attributes always equal true.
- expect(wrapper.innerHTML).toBe("
bee=default, $dollar=bill, nothing=true, empty=
");
+ expect(wrapper.innerHTML).toBe("
bee=default, $dollar=bill, nothing=true, empty=
");
});
it("should use default \\parameters if directly rendered", function() {
@@ -830,7 +830,7 @@ describe("Widget module", function() {
// Render the widget node to the DOM
var wrapper = renderWidgetNode(widgetNode);
// nothing = true in this attribute form because valueless attributes always equal true.
- expect(wrapper.innerHTML).toBe("
bee=default, $$dollar=bill, nothing=
");
+ expect(wrapper.innerHTML).toBe("
bee=default, $$dollar=bill, nothing=
");
});
it("can have more than one macroDef variable imported", function() {
@@ -844,7 +844,7 @@ describe("Widget module", function() {
// Render the widget node to the DOM
var wrapper = renderWidgetNode(widgetNode);
// Test the rendering
- expect(wrapper.innerHTML).toBe("
A B C D
");
+ expect(wrapper.innerHTML).toBe("
A B C D
");
});
it("import doesn't hold onto dead variables", function() {
@@ -893,7 +893,7 @@ describe("Widget module", function() {
// Render the widget node to the DOM
var wrapper = renderWidgetNode(widgetNode);
// Test the rendering
- expect(wrapper.innerHTML).toBe("
Don't forget me.
");
+ expect(wrapper.innerHTML).toBe("
Don't forget me.
");
});
/** Special case. \import should parse correctly, even if it's
diff --git a/editions/test/tiddlers/tests/test-wikitext-parser.js b/editions/test/tiddlers/tests/test-wikitext-parser.js
index c35ad1dce..75d23a6b7 100644
--- a/editions/test/tiddlers/tests/test-wikitext-parser.js
+++ b/editions/test/tiddlers/tests/test-wikitext-parser.js
@@ -23,87 +23,87 @@ describe("WikiText parser tests", function() {
it("should parse tags", function() {
expect(parse(" ")).toEqual(
- [ { type : 'element', tag : 'p', start : 0, end : 4, children : [ { type : 'element', tag : 'br', start : 0, end : 4, openTagStart: 0, openTagEnd: 4, rule: 'html', isBlock : false, attributes : { }, orderedAttributes: [ ] } ] } ]
+ [ { type : 'element', tag : 'p', attributes : { dir : { type : 'string', value : 'auto' } }, start : 0, end : 4, children : [ { type : 'element', tag : 'br', start : 0, end : 4, openTagStart: 0, openTagEnd: 4, rule: 'html', isBlock : false, attributes : { }, orderedAttributes: [ ] } ] } ]
);
expect(parse("")).toEqual(
- [ { type : 'element', tag : 'p', start : 0, end : 5, children : [ { type : 'text', text : '', start : 0, end : 5 } ] } ]
+ [ { type : 'element', tag : 'p', attributes : { dir : { type : 'string', value : 'auto' } }, start : 0, end : 5, children : [ { type : 'text', text : '', start : 0, end : 5 } ] } ]
);
expect(parse("
")).toEqual(
- [ { type : 'element', tag : 'p', start : 0, end : 5, children : [ { type : 'element', tag : 'div', start : 0, end : 5, openTagStart: 0, openTagEnd: 5, closeTagStart: 5, closeTagEnd: 5, rule: 'html', isBlock : false, attributes : { }, orderedAttributes: [ ], children : [ ] } ] } ]
+ [ { type : 'element', tag : 'p', attributes : { dir : { type : 'string', value : 'auto' } }, start : 0, end : 5, children : [ { type : 'element', tag : 'div', start : 0, end : 5, openTagStart: 0, openTagEnd: 5, closeTagStart: 5, closeTagEnd: 5, rule: 'html', isBlock : false, attributes : { }, orderedAttributes: [ ], children : [ ] } ] } ]
);
expect(parse("")).toEqual(
- [ { type : 'element', tag : 'p', start : 0, end : 6, children : [ { type : 'element', tag : 'div', isSelfClosing : true, isBlock : false, attributes : { }, orderedAttributes: [ ], start : 0, end : 6, rule: 'html' } ] } ]
+ [ { type : 'element', tag : 'p', attributes : { dir : { type : 'string', value : 'auto' } }, start : 0, end : 6, children : [ { type : 'element', tag : 'div', isSelfClosing : true, isBlock : false, attributes : { }, orderedAttributes: [ ], start : 0, end : 6, rule: 'html' } ] } ]
);
expect(parse("")).toEqual(
- [ { type : 'element', tag : 'p', start : 0, end : 11, children : [ { type : 'element', tag : 'div', isBlock : false, attributes : { }, orderedAttributes: [ ], children : [ ], start : 0, end : 11, openTagStart: 0, openTagEnd: 5, closeTagStart: 5, closeTagEnd: 11, rule: 'html' } ] } ]
+ [ { type : 'element', tag : 'p', attributes : { dir : { type : 'string', value : 'auto' } }, start : 0, end : 11, children : [ { type : 'element', tag : 'div', isBlock : false, attributes : { }, orderedAttributes: [ ], children : [ ], start : 0, end : 11, openTagStart: 0, openTagEnd: 5, closeTagStart: 5, closeTagEnd: 11, rule: 'html' } ] } ]
);
expect(parse("
some text
")).toEqual(
- [ { type : 'element', tag : 'p', start : 0, end : 20, children : [ { type : 'element', tag : 'div', openTagStart: 0, openTagEnd: 5, closeTagStart: 14, closeTagEnd: 20, rule: 'html', isBlock : false, attributes : { }, orderedAttributes: [ ], children : [ { type : 'text', text : 'some text', start : 5, end : 14 } ], start : 0, end : 20 } ] } ]
+ [ { type : 'element', tag : 'p', attributes : { dir : { type : 'string', value : 'auto' } }, start : 0, end : 20, children : [ { type : 'element', tag : 'div', openTagStart: 0, openTagEnd: 5, closeTagStart: 14, closeTagEnd: 20, rule: 'html', isBlock : false, attributes : { }, orderedAttributes: [ ], children : [ { type : 'text', text : 'some text', start : 5, end : 14 } ], start : 0, end : 20 } ] } ]
);
expect(parse("
some text
")).toEqual(
- [ { type : 'element', tag : 'p', start : 0, end : 30, children : [ { type : 'element', tag : 'div', isBlock : false, attributes : { attribute : { type : 'string', value : 'true', start : 4, end : 14, name: 'attribute' } }, orderedAttributes: [ { type : 'string', value : 'true', start : 4, end : 14, name: 'attribute' } ], children : [ { type : 'text', text : 'some text', start : 15, end : 24 } ], start : 0, end : 30, openTagStart: 0, openTagEnd: 15, closeTagStart: 24, closeTagEnd: 30, rule: 'html' } ] } ]
+ [ { type : 'element', tag : 'p', attributes : { dir : { type : 'string', value : 'auto' } }, start : 0, end : 30, children : [ { type : 'element', tag : 'div', isBlock : false, attributes : { attribute : { type : 'string', value : 'true', start : 4, end : 14, name: 'attribute' } }, orderedAttributes: [ { type : 'string', value : 'true', start : 4, end : 14, name: 'attribute' } ], children : [ { type : 'text', text : 'some text', start : 15, end : 24 } ], start : 0, end : 30, openTagStart: 0, openTagEnd: 15, closeTagStart: 24, closeTagEnd: 30, rule: 'html' } ] } ]
);
expect(parse("
some text
")).toEqual(
- [ { type : 'element', tag : 'p', start : 0, end : 38, children : [ { type : 'element', tag : 'div', openTagStart: 0, openTagEnd: 23, closeTagStart: 32, closeTagEnd: 38, rule: 'html', isBlock : false, attributes : { attribute : { type : 'string', name: 'attribute', value : 'value', start: 4, end: 22 } }, orderedAttributes: [ { type: 'string', name: 'attribute', value : 'value', start: 4, end: 22 } ], children : [ { type : 'text', text : 'some text', start : 23, end : 32 } ], start : 0, end : 38 } ] } ]
+ [ { type : 'element', tag : 'p', attributes : { dir : { type : 'string', value : 'auto' } }, start : 0, end : 38, children : [ { type : 'element', tag : 'div', openTagStart: 0, openTagEnd: 23, closeTagStart: 32, closeTagEnd: 38, rule: 'html', isBlock : false, attributes : { attribute : { type : 'string', name: 'attribute', value : 'value', start: 4, end: 22 } }, orderedAttributes: [ { type: 'string', name: 'attribute', value : 'value', start: 4, end: 22 } ], children : [ { type : 'text', text : 'some text', start : 23, end : 32 } ], start : 0, end : 38 } ] } ]
);
expect(parse("
some text
")).toEqual(
- [ { type : 'element', tag : 'p', start: 0, end: 47, children : [ { type : 'element', tag : 'div', isBlock : false, attributes : { attribute : { type : 'indirect', name: 'attribute', textReference : 'TiddlerTitle', start : 4, end : 31 } }, orderedAttributes: [ { type : 'indirect', name: 'attribute', textReference : 'TiddlerTitle', start : 4, end : 31 } ], children : [ { type : 'text', text : 'some text', start : 32, end : 41 } ], start : 0, end : 47, openTagStart: 0, openTagEnd: 32, closeTagStart: 41, closeTagEnd: 47, rule: 'html' } ] } ]
+ [ { type : 'element', tag : 'p', attributes : { dir : { type : 'string', value : 'auto' } }, start: 0, end: 47, children : [ { type : 'element', tag : 'div', isBlock : false, attributes : { attribute : { type : 'indirect', name: 'attribute', textReference : 'TiddlerTitle', start : 4, end : 31 } }, orderedAttributes: [ { type : 'indirect', name: 'attribute', textReference : 'TiddlerTitle', start : 4, end : 31 } ], children : [ { type : 'text', text : 'some text', start : 32, end : 41 } ], start : 0, end : 47, openTagStart: 0, openTagEnd: 32, closeTagStart: 41, closeTagEnd: 47, rule: 'html' } ] } ]
);
expect(parse("<$reveal state='$:/temp/search' type='nomatch' text=''>")).toEqual(
- [ { type : 'element', tag : 'p', start: 0, end: 55, children : [ { type : 'reveal', tag: '$reveal', rule: 'html', attributes : { state : { start : 8, name : 'state', type : 'string', value : '$:/temp/search', end : 31 }, type : { start : 31, name : 'type', type : 'string', value : 'nomatch', end : 46 }, text : { start : 46, name : 'text', type : 'string', value : '', end : 54 } }, orderedAttributes: [ { start : 8, name : 'state', type : 'string', value : '$:/temp/search', end : 31 }, { start : 31, name : 'type', type : 'string', value : 'nomatch', end : 46 }, { start : 46, name : 'text', type : 'string', value : '', end : 54 } ], start: 0, end : 55, openTagStart: 0, openTagEnd: 55, closeTagStart: 55, closeTagEnd: 55, isBlock : false, children : [ ] } ] } ]
+ [ { type : 'element', tag : 'p', attributes : { dir : { type : 'string', value : 'auto' } }, start: 0, end: 55, children : [ { type : 'reveal', tag: '$reveal', rule: 'html', attributes : { state : { start : 8, name : 'state', type : 'string', value : '$:/temp/search', end : 31 }, type : { start : 31, name : 'type', type : 'string', value : 'nomatch', end : 46 }, text : { start : 46, name : 'text', type : 'string', value : '', end : 54 } }, orderedAttributes: [ { start : 8, name : 'state', type : 'string', value : '$:/temp/search', end : 31 }, { start : 31, name : 'type', type : 'string', value : 'nomatch', end : 46 }, { start : 46, name : 'text', type : 'string', value : '', end : 54 } ], start: 0, end : 55, openTagStart: 0, openTagEnd: 55, closeTagStart: 55, closeTagEnd: 55, isBlock : false, children : [ ] } ] } ]
);
expect(parse("
some text
")).toEqual(
- [ { type : 'element', tag : 'p', start: 0, end: 54, children : [ { type : 'element', tag : 'div', rule: 'html', isBlock : false, attributes : { attribute : { type : 'indirect', name : 'attribute', textReference : 'TiddlerTitle!!field', start : 4, end : 38 } }, orderedAttributes: [ { type : 'indirect', name : 'attribute', textReference : 'TiddlerTitle!!field', start : 4, end : 38 } ], children : [ { type : 'text', text : 'some text', start : 39, end : 48 } ], start : 0, end : 54, openTagStart: 0, openTagEnd: 39, closeTagStart: 48, closeTagEnd: 54 } ] } ]
+ [ { type : 'element', tag : 'p', attributes : { dir : { type : 'string', value : 'auto' } }, start: 0, end: 54, children : [ { type : 'element', tag : 'div', rule: 'html', isBlock : false, attributes : { attribute : { type : 'indirect', name : 'attribute', textReference : 'TiddlerTitle!!field', start : 4, end : 38 } }, orderedAttributes: [ { type : 'indirect', name : 'attribute', textReference : 'TiddlerTitle!!field', start : 4, end : 38 } ], children : [ { type : 'text', text : 'some text', start : 39, end : 48 } ], start : 0, end : 54, openTagStart: 0, openTagEnd: 39, closeTagStart: 48, closeTagEnd: 54 } ] } ]
);
expect(parse("
some text
")).toEqual(
- [ { type : 'element', tag : 'p', start: 0, end: 55, children : [ { type : 'element', tag : 'div', rule: 'html', isBlock : false, attributes : { attribute : { type : 'indirect', name : 'attribute', textReference : 'Tiddler Title!!field', start : 4, end : 39 } }, orderedAttributes: [ { type : 'indirect', name : 'attribute', textReference : 'Tiddler Title!!field', start : 4, end : 39 } ], children : [ { type : 'text', text : 'some text', start : 40, end : 49 } ], start : 0, end : 55, openTagStart: 0, openTagEnd: 40, closeTagStart: 49, closeTagEnd: 55 } ] } ]
+ [ { type : 'element', tag : 'p', attributes : { dir : { type : 'string', value : 'auto' } }, start: 0, end: 55, children : [ { type : 'element', tag : 'div', rule: 'html', isBlock : false, attributes : { attribute : { type : 'indirect', name : 'attribute', textReference : 'Tiddler Title!!field', start : 4, end : 39 } }, orderedAttributes: [ { type : 'indirect', name : 'attribute', textReference : 'Tiddler Title!!field', start : 4, end : 39 } ], children : [ { type : 'text', text : 'some text', start : 40, end : 49 } ], start : 0, end : 55, openTagStart: 0, openTagEnd: 40, closeTagStart: 49, closeTagEnd: 55 } ] } ]
);
expect(parse("
\n\nsome text
")).toEqual(
- [ { type : 'element', start : 0, attributes : { attribute : { start : 4, name : 'attribute', type : 'indirect', textReference : 'TiddlerTitle!!field', end : 38 } }, orderedAttributes: [ { start : 4, name : 'attribute', type : 'indirect', textReference : 'TiddlerTitle!!field', end : 38 } ], tag : 'div', rule: 'html', end : 56, openTagStart: 0, openTagEnd: 39, closeTagStart: 50, closeTagEnd: 56, isBlock : true, children : [ { type : 'element', tag : 'p', start : 41, end : 50, children : [ { type : 'text', text : 'some text', start : 41, end : 50 } ] } ] } ]
+ [ { type : 'element', start : 0, attributes : { attribute : { start : 4, name : 'attribute', type : 'indirect', textReference : 'TiddlerTitle!!field', end : 38 } }, orderedAttributes: [ { start : 4, name : 'attribute', type : 'indirect', textReference : 'TiddlerTitle!!field', end : 38 } ], tag : 'div', rule: 'html', end : 56, openTagStart: 0, openTagEnd: 39, closeTagStart: 50, closeTagEnd: 56, isBlock : true, children : [ { type : 'element', tag : 'p', attributes : { dir : { type : 'string', value : 'auto' } }, start : 41, end : 50, children : [ { type : 'text', text : 'some text', start : 41, end : 50 } ] } ] } ]
);
expect(parse("
\n\nsome text
")).toEqual(
- [ { type : 'element', tag : 'p', start: 0, end: 67, children : [ { type : 'element', start : 0, end: 67, openTagStart: 0, openTagEnd: 5, closeTagStart: 61, closeTagEnd: 67, attributes : { }, orderedAttributes: [ ], tag : 'div', rule: 'html', isBlock : false, children : [ { type : 'element', start : 5, attributes : { attribute : { start : 9, name : 'attribute', type : 'indirect', textReference : 'TiddlerTitle!!field', end : 43 } }, orderedAttributes: [ { start : 9, name : 'attribute', type : 'indirect', textReference : 'TiddlerTitle!!field', end : 43 } ], tag : 'div', end : 61, openTagStart: 5, openTagEnd: 44, closeTagStart: 55, closeTagEnd: 61, rule: 'html', isBlock : true, children : [ { type : 'element', tag : 'p', start : 46, end : 55, children : [ { type : 'text', text : 'some text', start : 46, end : 55 } ] } ] } ] } ] } ]
+ [ { type : 'element', tag : 'p', attributes : { dir : { type : 'string', value : 'auto' } }, start: 0, end: 67, children : [ { type : 'element', start : 0, end: 67, openTagStart: 0, openTagEnd: 5, closeTagStart: 61, closeTagEnd: 67, attributes : { }, orderedAttributes: [ ], tag : 'div', rule: 'html', isBlock : false, children : [ { type : 'element', start : 5, attributes : { attribute : { start : 9, name : 'attribute', type : 'indirect', textReference : 'TiddlerTitle!!field', end : 43 } }, orderedAttributes: [ { start : 9, name : 'attribute', type : 'indirect', textReference : 'TiddlerTitle!!field', end : 43 } ], tag : 'div', end : 61, openTagStart: 5, openTagEnd: 44, closeTagStart: 55, closeTagEnd: 61, rule: 'html', isBlock : true, children : [ { type : 'element', tag : 'p', attributes : { dir : { type : 'string', value : 'auto' } }, start : 46, end : 55, children : [ { type : 'text', text : 'some text', start : 46, end : 55 } ] } ] } ] } ] } ]
);
expect(parse("
\n\n!some heading
")).toEqual(
- [ { type : 'element', tag : 'p', start: 0, end: 71, children : [ { type : 'element', start : 0, end: 71, openTagStart: 0, openTagEnd: 5, closeTagStart: 71, closeTagEnd: 71, attributes : { }, orderedAttributes: [ ], tag : 'div', rule: 'html', isBlock : false, children : [ { type : 'element', start : 5, attributes : { attribute : { start : 9, name : 'attribute', type : 'indirect', textReference : 'TiddlerTitle!!field', end : 43 } }, orderedAttributes: [ { start : 9, name : 'attribute', type : 'indirect', textReference : 'TiddlerTitle!!field', end : 43 } ], tag : 'div', end : 71, openTagStart: 5, openTagEnd: 44, closeTagStart: 71, closeTagEnd: 71, rule: 'html', isBlock : true, children : [ { type : 'element', tag : 'h1', start: 46, end: 71, rule: 'heading', attributes : { class : { type : 'string', value : '', start: 47, end: 47 } }, children : [ { type : 'text', text : 'some heading
', start : 47, end : 71 } ] } ] } ] } ] } ]
+ [ { type : 'element', tag : 'p', attributes : { dir : { type : 'string', value : 'auto' } }, start: 0, end: 71, children : [ { type : 'element', start : 0, end: 71, openTagStart: 0, openTagEnd: 5, closeTagStart: 71, closeTagEnd: 71, attributes : { }, orderedAttributes: [ ], tag : 'div', rule: 'html', isBlock : false, children : [ { type : 'element', start : 5, attributes : { attribute : { start : 9, name : 'attribute', type : 'indirect', textReference : 'TiddlerTitle!!field', end : 43 } }, orderedAttributes: [ { start : 9, name : 'attribute', type : 'indirect', textReference : 'TiddlerTitle!!field', end : 43 } ], tag : 'div', end : 71, openTagStart: 5, openTagEnd: 44, closeTagStart: 71, closeTagEnd: 71, rule: 'html', isBlock : true, children : [ { type : 'element', tag : 'h1', start: 46, end: 71, rule: 'heading', attributes : { class : { type : 'string', value : '', start: 47, end: 47 } }, children : [ { type : 'text', text : 'some heading
");
expect(wiki.renderText("text/html","text/vnd-tiddlywiki","@@.myclass\n---\n@@")).toBe("");
// Test styles can be added too
- expect(wiki.renderText("text/html","text/vnd-tiddlywiki","@@color:red;\n
');
+ "some @@background:red;color:white;.myClass 2 style and 1 class@@ text")).toBe('
some 2 style and 1 class text
');
});
});
diff --git a/editions/tw5.com/tiddlers/Right-To-Left Languages.tid b/editions/tw5.com/tiddlers/Right-To-Left Languages.tid
new file mode 100644
index 000000000..d32d01524
--- /dev/null
+++ b/editions/tw5.com/tiddlers/Right-To-Left Languages.tid
@@ -0,0 +1,11 @@
+created: 20230613162508509
+modified: 20230613162508509
+title: Right-To-Left Languages
+type: text/vnd.tiddlywiki
+
+<<.from-version "5.3.0">> The [[language plugins|Languages]] in TiddlyWiki's plugin library apply the appropriate [["right-to-left" setting|https://www.w3.org/International/questions/qa-html-dir]] to the entire document. To set the right to left setting independently for an individual tiddler, use the `\dir` [[pragma|Pragma]] at the top of the tiddler:
+
+```
+\dir rtl
+This text will be displayed with right-to-left formatting
+```
diff --git a/editions/tw5.com/tiddlers/pragmas/Pragma_ _dir.tid b/editions/tw5.com/tiddlers/pragmas/Pragma_ _dir.tid
new file mode 100644
index 000000000..bc5774e30
--- /dev/null
+++ b/editions/tw5.com/tiddlers/pragmas/Pragma_ _dir.tid
@@ -0,0 +1,13 @@
+created: 20230613162508509
+modified: 20230613162508509
+tags: Pragmas
+title: Pragma: \dir
+type: text/vnd.tiddlywiki
+
+<<.from-version "5.3.0">> The ''\dir'' [[pragma|Pragmas]] is used to set the text direction of text within a tiddler -- see [[Right-To-Left Languages]].
+
+The ''\dir'' pragma should be used after any procedure, function, widget or macro definitions.
+
+* `\dir ltr` – sets text direction to left-to-right
+* `\dir rtl` – sets text direction to right-to-left
+* `\dir auto` – causes the browser to attempt to automatically deduce the text direction
diff --git a/editions/tw5.com/tiddlers/testcases/DataWidget/FilterMissingTiddler.tid b/editions/tw5.com/tiddlers/testcases/DataWidget/FilterMissingTiddler.tid
index 5c8f242fc..add04d9a2 100644
--- a/editions/tw5.com/tiddlers/testcases/DataWidget/FilterMissingTiddler.tid
+++ b/editions/tw5.com/tiddlers/testcases/DataWidget/FilterMissingTiddler.tid
@@ -14,4 +14,4 @@ title: Output
+
title: ExpectedResult
-
[]
\ No newline at end of file
+
[]
\ No newline at end of file
diff --git a/editions/tw5.com/tiddlers/testcases/DataWidget/ImportCompound.tid b/editions/tw5.com/tiddlers/testcases/DataWidget/ImportCompound.tid
index 20e967316..950e4b007 100644
--- a/editions/tw5.com/tiddlers/testcases/DataWidget/ImportCompound.tid
+++ b/editions/tw5.com/tiddlers/testcases/DataWidget/ImportCompound.tid
@@ -23,7 +23,7 @@ This is a payload tiddler from a compound tiddler
+
title: ExpectedResult
-
[
+
[
{
"title": "Payload Tiddler",
"tags": "Alpha Beta Gamma",
diff --git a/editions/tw5.com/tiddlers/testcases/DataWidget/ImportCustomTitle.tid b/editions/tw5.com/tiddlers/testcases/DataWidget/ImportCustomTitle.tid
index 5eb48cde4..3e6a67d72 100644
--- a/editions/tw5.com/tiddlers/testcases/DataWidget/ImportCustomTitle.tid
+++ b/editions/tw5.com/tiddlers/testcases/DataWidget/ImportCustomTitle.tid
@@ -20,7 +20,7 @@ This is the tiddler HelloThere
+
title: ExpectedResult
-
\ No newline at end of file
diff --git a/editions/tw5.com/tiddlers/testcases/HTML/OpenTagBlankLineInBoldSyntax.tid b/editions/tw5.com/tiddlers/testcases/HTML/OpenTagBlankLineInBoldSyntax.tid
index f6072bca4..c421e1d9b 100644
--- a/editions/tw5.com/tiddlers/testcases/HTML/OpenTagBlankLineInBoldSyntax.tid
+++ b/editions/tw5.com/tiddlers/testcases/HTML/OpenTagBlankLineInBoldSyntax.tid
@@ -19,4 +19,4 @@ title: Output
+
title: ExpectedResult
-
list item one
list item two
\ No newline at end of file
+
list item one
list item two
\ No newline at end of file
diff --git a/editions/tw5.com/tiddlers/testcases/HTML/OpenTagBlankLineInTableSyntax.tid b/editions/tw5.com/tiddlers/testcases/HTML/OpenTagBlankLineInTableSyntax.tid
index 0835c47bc..852f8dfc4 100644
--- a/editions/tw5.com/tiddlers/testcases/HTML/OpenTagBlankLineInTableSyntax.tid
+++ b/editions/tw5.com/tiddlers/testcases/HTML/OpenTagBlankLineInTableSyntax.tid
@@ -19,4 +19,4 @@ title: Output
+
title: ExpectedResult
-
|For a blank line after open tag|
list is recognised
but the surrounding table row is not
|
\ No newline at end of file
+
|For a blank line after open tag|
list is recognised
but the surrounding table row is not
|
\ No newline at end of file
diff --git a/editions/tw5.com/tiddlers/testcases/HTML/OpenTagNoBlankLine.tid b/editions/tw5.com/tiddlers/testcases/HTML/OpenTagNoBlankLine.tid
index e49fcabfb..2f98f0268 100644
--- a/editions/tw5.com/tiddlers/testcases/HTML/OpenTagNoBlankLine.tid
+++ b/editions/tw5.com/tiddlers/testcases/HTML/OpenTagNoBlankLine.tid
@@ -23,7 +23,7 @@ This also is not a new paragraph.
+
title: ExpectedResult
-
+
* Open tag without a blank line means
* block mode punctuation (i.e. this list) will
* NOT be recognised.
diff --git a/editions/tw5.com/tiddlers/testcases/RevealWidget/AccordionSlider.tid b/editions/tw5.com/tiddlers/testcases/RevealWidget/AccordionSlider.tid
index 27361b335..f1d0a0410 100644
--- a/editions/tw5.com/tiddlers/testcases/RevealWidget/AccordionSlider.tid
+++ b/editions/tw5.com/tiddlers/testcases/RevealWidget/AccordionSlider.tid
@@ -27,4 +27,4 @@ And this is some text
+
title: ExpectedResult
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/editions/tw5.com/tiddlers/testcases/RevealWidget/Popup.tid b/editions/tw5.com/tiddlers/testcases/RevealWidget/Popup.tid
index 3defafd48..f542a89b1 100644
--- a/editions/tw5.com/tiddlers/testcases/RevealWidget/Popup.tid
+++ b/editions/tw5.com/tiddlers/testcases/RevealWidget/Popup.tid
@@ -24,4 +24,4 @@ And this is some text
+
title: ExpectedResult
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/editions/tw5.com/tiddlers/testcases/RevealWidget/SimpleReveal.tid b/editions/tw5.com/tiddlers/testcases/RevealWidget/SimpleReveal.tid
index b73eaa83f..2d32c2ad3 100644
--- a/editions/tw5.com/tiddlers/testcases/RevealWidget/SimpleReveal.tid
+++ b/editions/tw5.com/tiddlers/testcases/RevealWidget/SimpleReveal.tid
@@ -23,5 +23,5 @@ And this is some text
+
title: ExpectedResult
-
+
\ No newline at end of file
diff --git a/editions/tw5.com/tiddlers/testcases/RevealWidget/TextReference.tid b/editions/tw5.com/tiddlers/testcases/RevealWidget/TextReference.tid
index e21230033..f698b586a 100644
--- a/editions/tw5.com/tiddlers/testcases/RevealWidget/TextReference.tid
+++ b/editions/tw5.com/tiddlers/testcases/RevealWidget/TextReference.tid
@@ -18,6 +18,6 @@ jeremy: tiddlywiki
+
title: ExpectedResult
-
+
TiddlyWiki!
\ No newline at end of file
diff --git a/editions/tw5.com/tiddlers/testcases/TestCaseWidget/FailingTest.tid b/editions/tw5.com/tiddlers/testcases/TestCaseWidget/FailingTest.tid
index bad3e1395..dce1892c7 100644
--- a/editions/tw5.com/tiddlers/testcases/TestCaseWidget/FailingTest.tid
+++ b/editions/tw5.com/tiddlers/testcases/TestCaseWidget/FailingTest.tid
@@ -12,4 +12,4 @@ title: Output
The sum is <$text text={{{ [[2]add[2]] }}}/>.
+
title: ExpectedResult
-text:
\ No newline at end of file
diff --git a/editions/tw5.com/tiddlers/testcases/TranscludeWidget/SimpleTransclusion.tid b/editions/tw5.com/tiddlers/testcases/TranscludeWidget/SimpleTransclusion.tid
index 0e5be222c..62f17d464 100644
--- a/editions/tw5.com/tiddlers/testcases/TranscludeWidget/SimpleTransclusion.tid
+++ b/editions/tw5.com/tiddlers/testcases/TranscludeWidget/SimpleTransclusion.tid
@@ -20,4 +20,4 @@ title: Address
14 Carrot Street, Vegetabletown
+
title: ExpectedResult
-text:
Good morning, my name is Robert Rabbit and I live in 14 Carrot Street, Vegetabletown
\ No newline at end of file
+text:
Good morning, my name is Robert Rabbit and I live in 14 Carrot Street, Vegetabletown
\ No newline at end of file
diff --git a/plugins/tiddlywiki/codemirror/engine.js b/plugins/tiddlywiki/codemirror/engine.js
index 38064fcd6..4197885b9 100755
--- a/plugins/tiddlywiki/codemirror/engine.js
+++ b/plugins/tiddlywiki/codemirror/engine.js
@@ -106,6 +106,9 @@ function CodeMirrorEngine(options) {
if(this.widget.editTabIndex) {
config["tabindex"] = this.widget.editTabIndex;
}
+ if(this.widget.editDir) {
+ config.direction = this.widget.editDir;
+ }
config.editWidget = this.widget;
// Create the CodeMirror instance
this.cm = window.CodeMirror(function(cmDomNode) {
diff --git a/plugins/tiddlywiki/geospatial/tests/operators/geodifference-interactive.tid b/plugins/tiddlywiki/geospatial/tests/operators/geodifference-interactive.tid
index ca9d8a954..dc9751c08 100644
--- a/plugins/tiddlywiki/geospatial/tests/operators/geodifference-interactive.tid
+++ b/plugins/tiddlywiki/geospatial/tests/operators/geodifference-interactive.tid
@@ -60,4 +60,4 @@ type: application/json
+
title: ExpectedResult
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/plugins/tiddlywiki/geospatial/tests/operators/geodifference.tid b/plugins/tiddlywiki/geospatial/tests/operators/geodifference.tid
index 5f525cebc..0775cbfbe 100644
--- a/plugins/tiddlywiki/geospatial/tests/operators/geodifference.tid
+++ b/plugins/tiddlywiki/geospatial/tests/operators/geodifference.tid
@@ -51,4 +51,4 @@ type: application/json
+
title: ExpectedResult
-
{"type":"FeatureCollection","features":[]}
\ No newline at end of file
+
{"type":"FeatureCollection","features":[]}
\ No newline at end of file
diff --git a/plugins/tiddlywiki/geospatial/tests/operators/geodistance.tid b/plugins/tiddlywiki/geospatial/tests/operators/geodistance.tid
index 75d1e9259..803cda28b 100644
--- a/plugins/tiddlywiki/geospatial/tests/operators/geodistance.tid
+++ b/plugins/tiddlywiki/geospatial/tests/operators/geodistance.tid
@@ -27,4 +27,4 @@ title: Output
+
title: ExpectedResult
-
\ No newline at end of file
diff --git a/plugins/tiddlywiki/geospatial/tests/operators/geointersect-interactive.tid b/plugins/tiddlywiki/geospatial/tests/operators/geointersect-interactive.tid
index 05a7f9759..c8dba521b 100644
--- a/plugins/tiddlywiki/geospatial/tests/operators/geointersect-interactive.tid
+++ b/plugins/tiddlywiki/geospatial/tests/operators/geointersect-interactive.tid
@@ -60,4 +60,4 @@ type: application/json
+
title: ExpectedResult
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/plugins/tiddlywiki/geospatial/tests/operators/geointersect.tid b/plugins/tiddlywiki/geospatial/tests/operators/geointersect.tid
index 3a205df97..3a9e4312a 100644
--- a/plugins/tiddlywiki/geospatial/tests/operators/geointersect.tid
+++ b/plugins/tiddlywiki/geospatial/tests/operators/geointersect.tid
@@ -51,4 +51,4 @@ type: application/json
+
title: ExpectedResult
-
\ No newline at end of file
diff --git a/plugins/tiddlywiki/geospatial/tests/operators/geolookup.tid b/plugins/tiddlywiki/geospatial/tests/operators/geolookup.tid
index b363a48a2..200047133 100644
--- a/plugins/tiddlywiki/geospatial/tests/operators/geolookup.tid
+++ b/plugins/tiddlywiki/geospatial/tests/operators/geolookup.tid
@@ -61,4 +61,4 @@ type: application/json
+
title: ExpectedResult
-
boxfish
\ No newline at end of file
+
boxfish
\ No newline at end of file
diff --git a/plugins/tiddlywiki/geospatial/tests/operators/geonearestpoint.tid b/plugins/tiddlywiki/geospatial/tests/operators/geonearestpoint.tid
index 08fc3e023..c425fdf56 100644
--- a/plugins/tiddlywiki/geospatial/tests/operators/geonearestpoint.tid
+++ b/plugins/tiddlywiki/geospatial/tests/operators/geonearestpoint.tid
@@ -25,4 +25,4 @@ title: Output
+
title: ExpectedResult
-
Oxford,Winchester,
\ No newline at end of file
+
Oxford,Winchester,
\ No newline at end of file
diff --git a/plugins/tiddlywiki/geospatial/tests/operators/geonearestpoint2.tid b/plugins/tiddlywiki/geospatial/tests/operators/geonearestpoint2.tid
index 9cb509ad0..b30b57844 100644
--- a/plugins/tiddlywiki/geospatial/tests/operators/geonearestpoint2.tid
+++ b/plugins/tiddlywiki/geospatial/tests/operators/geonearestpoint2.tid
@@ -42,4 +42,4 @@ title: Output
+
title: ExpectedResult
-
Oxford
\ No newline at end of file
+
Oxford
\ No newline at end of file
diff --git a/plugins/tiddlywiki/geospatial/tests/operators/geounion-interactive.tid b/plugins/tiddlywiki/geospatial/tests/operators/geounion-interactive.tid
index 86998a7c8..c797c66ff 100644
--- a/plugins/tiddlywiki/geospatial/tests/operators/geounion-interactive.tid
+++ b/plugins/tiddlywiki/geospatial/tests/operators/geounion-interactive.tid
@@ -60,4 +60,4 @@ type: application/json
+
title: ExpectedResult
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/plugins/tiddlywiki/geospatial/tests/operators/geounion.tid b/plugins/tiddlywiki/geospatial/tests/operators/geounion.tid
index faa63cccd..3552c1997 100644
--- a/plugins/tiddlywiki/geospatial/tests/operators/geounion.tid
+++ b/plugins/tiddlywiki/geospatial/tests/operators/geounion.tid
@@ -51,4 +51,4 @@ type: application/json
+
title: ExpectedResult
-
\ No newline at end of file
diff --git a/plugins/tiddlywiki/geospatial/tests/operators/olc-encode.tid b/plugins/tiddlywiki/geospatial/tests/operators/olc-encode.tid
index e507b6004..d18d6ec4b 100644
--- a/plugins/tiddlywiki/geospatial/tests/operators/olc-encode.tid
+++ b/plugins/tiddlywiki/geospatial/tests/operators/olc-encode.tid
@@ -15,6 +15,6 @@ title: Output
+
title: ExpectedResult
-
(9C3WQP2R+QV)
+
(9C3WQP2R+QV)
(9C3WQP2R+QVH)
\ No newline at end of file
diff --git a/plugins/tiddlywiki/geospatial/tests/widgets/geomap-draggable-marker.tid b/plugins/tiddlywiki/geospatial/tests/widgets/geomap-draggable-marker.tid
index f79ea8441..023932c59 100644
--- a/plugins/tiddlywiki/geospatial/tests/widgets/geomap-draggable-marker.tid
+++ b/plugins/tiddlywiki/geospatial/tests/widgets/geomap-draggable-marker.tid
@@ -37,4 +37,4 @@ title: Output
+
title: ExpectedResult
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/plugins/tiddlywiki/geospatial/tests/widgets/geomap-empty-layer.tid b/plugins/tiddlywiki/geospatial/tests/widgets/geomap-empty-layer.tid
index 1a8cdb686..7d2f012ee 100644
--- a/plugins/tiddlywiki/geospatial/tests/widgets/geomap-empty-layer.tid
+++ b/plugins/tiddlywiki/geospatial/tests/widgets/geomap-empty-layer.tid
@@ -16,4 +16,4 @@ title: Output
+
title: ExpectedResult
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/plugins/tiddlywiki/geospatial/tests/widgets/geomap-refresh.tid b/plugins/tiddlywiki/geospatial/tests/widgets/geomap-refresh.tid
index 3a0e61fda..f1a4157d1 100644
--- a/plugins/tiddlywiki/geospatial/tests/widgets/geomap-refresh.tid
+++ b/plugins/tiddlywiki/geospatial/tests/widgets/geomap-refresh.tid
@@ -56,7 +56,7 @@ Click here to enable the layer
+
title: ExpectedResult
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/plugins/tiddlywiki/geospatial/tests/widgets/geomap.tid b/plugins/tiddlywiki/geospatial/tests/widgets/geomap.tid
index 44737ea8a..40343b668 100644
--- a/plugins/tiddlywiki/geospatial/tests/widgets/geomap.tid
+++ b/plugins/tiddlywiki/geospatial/tests/widgets/geomap.tid
@@ -51,4 +51,4 @@ title: Output
+
title: ExpectedResult
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid
index c795ad362..f60d8bff9 100644
--- a/themes/tiddlywiki/vanilla/base.tid
+++ b/themes/tiddlywiki/vanilla/base.tid
@@ -1319,6 +1319,8 @@ button.tc-btn-invisible.tc-remove-tag-button {
border: 1px solid <>;
line-height: 1.3em;
font-family: {{$:/themes/tiddlywiki/vanilla/settings/editorfontfamily}};
+ unicode-bidi: plaintext;
+ text-align: start; /* Align text automatically left/right*/
}
.tc-tiddler-frame input.tc-edit-texteditor,