mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-03 13:56:43 +00:00
Standardise whitespace in conditional shortcut syntax (#8583)
This commit is contained in:
@@ -5,7 +5,7 @@ tags: [[$:/tags/wiki-test-spec]]
|
||||
|
||||
title: Text
|
||||
|
||||
This is a <% if [<something>match[one]] %>Elephant<% endif %>, I think.
|
||||
This is a <%if [<something>match[one]] %>Elephant<%endif%>, I think.
|
||||
+
|
||||
title: Output
|
||||
|
||||
|
||||
@@ -6,23 +6,23 @@ tags: [[$:/tags/wiki-test-spec]]
|
||||
title: Output
|
||||
|
||||
\procedure test(animal)
|
||||
<% if [<animal>match[Elephant]] %>
|
||||
<%if [<animal>match[Elephant]] %>
|
||||
|
||||
! It is an elephant
|
||||
|
||||
<% else %>
|
||||
<%else%>
|
||||
|
||||
<% if [<animal>match[Giraffe]] %>
|
||||
<%if [<animal>match[Giraffe]] %>
|
||||
|
||||
! It is a giraffe
|
||||
|
||||
<% else %>
|
||||
<%else%>
|
||||
|
||||
! It is completely unknown
|
||||
|
||||
<% endif %>
|
||||
<%endif%>
|
||||
|
||||
<% endif %>
|
||||
<%endif%>
|
||||
|
||||
\end
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ tags: [[$:/tags/wiki-test-spec]]
|
||||
|
||||
title: Text
|
||||
|
||||
This is a <% if [<something>match[one]] %>Elephant<% else %>Crocodile<% endif %>, I think.
|
||||
This is a <%if [<something>match[one]] %>Elephant<%else%>Crocodile<%endif%>, I think.
|
||||
+
|
||||
title: Output
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ tags: [[$:/tags/wiki-test-spec]]
|
||||
|
||||
title: Text
|
||||
|
||||
This is a <% if [<something>match[one]] %>Elephant<% elseif [<something>match[two]] %>Antelope<% else %>Crocodile<% endif %>, I think.
|
||||
This is a <%if [<something>match[one]] %>Elephant<%elseif [<something>match[two]] %>Antelope<%else%>Crocodile<%endif%>, I think.
|
||||
+
|
||||
title: Output
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ tags: [[$:/tags/wiki-test-spec]]
|
||||
|
||||
title: Text
|
||||
|
||||
This is a <% if [<something>match[one]] %>Elephant
|
||||
This is a <%if [<something>match[one]] %>Elephant
|
||||
+
|
||||
title: Output
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ tags: [[$:/tags/wiki-test-spec]]
|
||||
|
||||
title: Output
|
||||
|
||||
This is a <% if 1 2 3 4 5 6 %>Elephant<% endif %>, I think.
|
||||
This is a <%if 1 2 3 4 5 6 %>Elephant<%endif%>, I think.
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
|
||||
@@ -6,15 +6,15 @@ tags: [[$:/tags/wiki-test-spec]]
|
||||
title: Output
|
||||
|
||||
\procedure test(animal)
|
||||
<% if [<animal>match[Elephant]] %>
|
||||
<%if [<animal>match[Elephant]] %>
|
||||
It is an elephant
|
||||
<% else %>
|
||||
<% if [<animal>match[Giraffe]] %>
|
||||
<%else%>
|
||||
<%if [<animal>match[Giraffe]] %>
|
||||
It is a giraffe
|
||||
<% else %>
|
||||
<%else%>
|
||||
It is completely unknown
|
||||
<% endif %>
|
||||
<% endif %>
|
||||
<%endif%>
|
||||
<%endif%>
|
||||
\end
|
||||
|
||||
<<test "Giraffe">>
|
||||
|
||||
@@ -7,20 +7,20 @@ title: Text
|
||||
|
||||
\whitespace trim
|
||||
This is a 
|
||||
<% if [<something>match[one]] %>
|
||||
<% if [<another>match[one]] %>
|
||||
<%if [<something>match[one]] %>
|
||||
<%if [<another>match[one]] %>
|
||||
Indian
|
||||
<% elseif [<another>match[two]] %>
|
||||
<%elseif [<another>match[two]] %>
|
||||
African
|
||||
<% else %>
|
||||
<%else%>
|
||||
Unknown
|
||||
<% endif %>
|
||||
<%endif%>
|
||||
 Elephant
|
||||
<% elseif [<something>match[two]] %>
|
||||
<%elseif [<something>match[two]] %>
|
||||
Antelope
|
||||
<% else %>
|
||||
<%else%>
|
||||
Crocodile
|
||||
<% endif %>
|
||||
<%endif%>
|
||||
, I think.
|
||||
+
|
||||
title: Output
|
||||
|
||||
Reference in New Issue
Block a user