Commas truncate replacement text!
Biep
23 Sept 2015, 09:25This is a [replacement](@replace ding=text with a comma, and that truncates) {label:ding=test}.
When I run this, the bit ", and that truncates" doesn't show up. It seems "and that truncates" is taken as a variable which is set to true.
Must commas be escaped - and how?
(I would have posted this on ifanswers.com, but that site asks for an Anti-spam verification that it refuses to show.)
Biep
23 Sept 2015, 12:46Aha, I see the cause of the problem - attribute values can be set after a comma:
I do not see yet how to escape the comma.
Are you [[male]](start, gender=male) or [[female]](start, gender=female)?
That is an unfortunate interference, because commas are extremely common in normal text.I do not see yet how to escape the comma.
Alex
23 Sept 2015, 13:10You can use a passage name instead of writing the text inside the braces.
This is a [replacement](@replace ding=new text) {label:ding=test}.
[new text]:
text with a comma, and that *doesn't* truncate!
Biep
23 Sept 2015, 13:22Ah yes, of course! Neat!
Thanks!
P. S.: So one doesn't need to bracket the 'new text' bit in the @replace argument? I find it doesn't even work if I add the [].
Thanks!
P. S.: So one doesn't need to bracket the 'new text' bit in the @replace argument? I find it doesn't even work if I add the [].