Commas truncate replacement text!

Biep
This 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
Aha, I see the cause of the problem - attribute values can be set after a 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
You 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
Ah 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 [].

This topic is now closed. Topics are closed after 180 days of inactivity.

Support

Forums