- SOMENEWTML{hello} works
- SOMENEWTML{"hello"} works
- SOMENEWTML{'hello'} doesn't
given the need to use single quotes to insullate from nested double quotes, and that in some places the single quote does function - I'm puzzeled by the utility of this.
--
TWiki:Main/SvenDowideit - 24 Aug 2008
I had an argument about this a long time ago. I believe that tag syntax should be context free and robust over a range of quote types. However the existing spec of TML is such that it is neither. By the spec of TML, then SOMENEWTML{'hello'}
does work. Just not the way you want it to work.
You can use the context free version of the attrs tag parser, but I think you will meet a lot of resistance to changing the tag syntax in any way. So I'm setting this no-action, as a change to the syntax should go through the feature request process, not the bug process.
--
CrawfordCurrie - 24 Aug 2008
mmm, seems to me to break the principle of least surprise that
some tag params work with single quote, and others don't. Setting this to more info required, rather than sweeping it under the table again.
--
TWiki:Main.SvenDowideit - 24 Aug 2008
It will actually break quite a few twiki apps that rely on single quotes to be "freely available", ie. that they don't participate in TML parsing. The easiest way to have parameters in
HTML being passed in TML argument position is by using
single quotes. So, please, don't change that rule. There's no real need to do it.
--
TWiki:Main.MichaelDaum - 26 Aug 2008
Stale: Setting to no action required (no feedback for 8 years).
--
PeterThoeny - 2010-10-12