Skip to content

Commit

Permalink
Added two failing tests to illustrate bug TiddlyWiki#3460
Browse files Browse the repository at this point in the history
  • Loading branch information
btheado committed Dec 24, 2023
1 parent 90b3652 commit 0cf6833
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
18 changes: 18 additions & 0 deletions editions/test/tiddlers/tests/data/macros/WhitespaceOnlyWithEnd.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
title: Macros/WhitespaceOnlyWithEnd
description: The /end should be detected when macro definition contains only whitespace
type: text/vnd.tiddlywiki-multiple
tags: [[$:/tags/wiki-test-spec]]

title: Output

\define max()
\end
Nothing
\end

Out: <<max>>
+
title: ExpectedResult

<p>Nothing
\end</p><p>Out: </p>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
title: Macros/WhitespaceOnlyWithEnd2
description: Line with \end can start with whitespace
type: text/vnd.tiddlywiki-multiple
tags: [[$:/tags/wiki-test-spec]]

title: Output

\define empty()
\end

Out: <<empty>>
+
title: ExpectedResult

<p>Out: </p>

0 comments on commit 0cf6833

Please sign in to comment.