OK, I chucked out the <br/> from the string, now I have one table for each line of output, rather than one twelve row table.
I guess that's progress. It's puzzling; if I hardcode the output of the macro (what I expect, anyway) in the same tiddler that calls the macro the hardcoded table is OK. I'm missing something here. Andrew On Dec 10, 1:42 pm, tejjyid <[email protected]> wrote: > I'm using wikify to write out a string "||||||||X|X|X|X|X|X|||||<br/>" > - the <br/> is breaking the line, but the "|" is not turning into a > table separator. > What I get looks like a table in "edit" mode, rather than "display" > mode. > > Thanks, Andrew > > On Dec 9, 10:05 pm, Eric Shulman <[email protected]> wrote: > > > > My plan is to parse the input & bung it into a table; what I can't > > > work out is how to write out the table from the macro. > > > You can easily generate wiki-syntax text and then render it from a > > macro, using the wikify() function, like this: > > > config.macros.myMacro={ > > handler: > > function(place,macroName,params,wikifier,paramString,tiddler) { > > var out=""; > > // ... your code here ... > > wikify(out,place,null,tiddler); > > } > > > } > > > Alternatively, if you want to generate HTML syntax, you can render it, > > like this: > > > config.macros.myMacro={ > > handler: > > function(place,macroName,params,wikifier,paramString,tiddler) { > > var out=""; > > // ... your code here ... > > place.innherHTML=out; > > } > > > } > > > enjoy, > > -e > > Eric Shulman > > TiddlyTools / ELS Design Studios -- 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.

