To test this, try the following on tiddlywiki.com for example:
put this in some tiddler:
<$button><$action-setfield $tiddler="test" text={{{
[[jsontiddler]getindex[test]] }}}/>Ok</$button>
create the tiddler "jsontiddler" with its type set to "application/json"
and put the following inside:
{
"test": "\r\n\r\nhello\r\n\r\nlala\r\n"
}
save and hit the Ok button. the tiddler "test" gets created with the text
from the "test" index, but the new-line characters are actual new-lines
oddly enough, this works correctly. So I'm wondering now what I'm doing
wrong in my macro
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/1f436327-3c74-4848-b2b9-295fefdf8351%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.