From d9eb5499a3f859ba42ef8f77d98e4fc44588acef Mon Sep 17 00:00:00 2001 From: btheado Date: Sat, 30 Oct 2021 10:54:57 -0400 Subject: [PATCH] Ensure the operator examples have unique id (#6153) The first parameter of the operator examples macro is used for constructing unique state tiddler titles. The cycle, log, and match operators had duplicates, causing examples to share state with each other. --- .../tiddlers/filters/examples/cycle Operator (Examples).tid | 2 +- .../tiddlers/filters/examples/log Operator (Examples).tid | 2 +- .../tiddlers/filters/examples/match Operator (Examples).tid | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/editions/tw5.com/tiddlers/filters/examples/cycle Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/cycle Operator (Examples).tid index 0ff1d0336..8520d0ff6 100644 --- a/editions/tw5.com/tiddlers/filters/examples/cycle Operator (Examples).tid +++ b/editions/tw5.com/tiddlers/filters/examples/cycle Operator (Examples).tid @@ -18,4 +18,4 @@ Cycle through a list of values to add as a tag, in reverse order: <<.using-days-of-week>> <<.operator-example 1 """[list[Days of the Week]first[]] +[cycle{Days of the Week!!list}]""">> -<<.operator-example 1 """[list[Days of the Week]first[]] +[cycle{Days of the Week!!list},[2]]""">> \ No newline at end of file +<<.operator-example 2 """[list[Days of the Week]first[]] +[cycle{Days of the Week!!list},[2]]""">> diff --git a/editions/tw5.com/tiddlers/filters/examples/log Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/log Operator (Examples).tid index 371952170..a05b0f8e7 100644 --- a/editions/tw5.com/tiddlers/filters/examples/log Operator (Examples).tid +++ b/editions/tw5.com/tiddlers/filters/examples/log Operator (Examples).tid @@ -11,4 +11,4 @@ Logarithm of `100` with base `10`: <<.operator-example 2 "[[100]log[10]]">> Natural logarithm of 10 (base `e`), equivalent to `ln(10)` in mathematics: -<<.operator-example 2 "[[10]log[]]">> +<<.operator-example 3 "[[10]log[]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/match Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/match Operator (Examples).tid index 46e82ab0b..8124b58c0 100644 --- a/editions/tw5.com/tiddlers/filters/examples/match Operator (Examples).tid +++ b/editions/tw5.com/tiddlers/filters/examples/match Operator (Examples).tid @@ -5,4 +5,4 @@ title: match Operator (Examples) type: text/vnd.tiddlywiki <<.operator-example 1 "a b c +[match[b]]">> -<<.operator-example 1 "[match[HelloThere]]">> +<<.operator-example 2 "[match[HelloThere]]">>