Hi TwWizards

I'm trying to fetch first lines from a ##SomeSection in tiddlers
tagged with SomeTag.
If I'm taking all tiddler content into account - this works:

<<forEachTiddler where 'tiddler.tags.contains("SomeTag")'
script
 '
function getFirstLine(s) {
 var m = s.match(/\s*(.*)/);
 return m != null && m.length >= 1 ? m[1] : "";
 }
 '
write
 '"#"+getFirstLine(tiddler.text)+"\n"'>>...

However this doesn't:

<<forEachTiddler where 'tiddler.tags.contains("SomeTag")'
script
 '
function getFirstLine(s) {
 var m = s.match(/\s*(.*)/);
 return m != null && m.length >= 1 ? m[1] : "";
 }
 '
write
 '"#"+getFirstLine("+tiddler+"##SomeSection.text)+"\n"'>>...

I tried all kinds off different variations on the
"+getFirstLine(TIDDLERSECTION.text)+" call...
Do you know what to do??

Cheers Måns Mårtensson

-- 
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.

Reply via email to