Try this:
<script label="add brackets">
var tid=store.getTiddler('SomeTiddler');
var txt='[['+tid.text.split('\n').join(']]\n[[')+']]';
store.saveTiddler
(tid,tid,txt,tid.modifier,tid.modified,tid.tags,tid.fields);
</script>
enjoy,
-e
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---