Hi Juan,
you must add a newline for every row.
And each row must itself start a row with a "|" pipe symbol.
See below:
ret+="|column "+(i+1) + " |"+"\n";
That should do what you want
On Friday, April 28, 2017 at 6:22:25 AM UTC+2, juan erasmo gomez wrote:
>
>
> /*\
> title: TrxMacro2
> type: application/javascript
> module-type: macro
> \*/
> (function(){
>
> /*jslint node: true, browser: true */
> /*global $tw: false */
> "use strict";
>
> exports.name = "trxmacro";
>
> exports.params = [
> {name: "columns"}
> ];
>
> /*
> Run the macro
> */
> exports.run = function(columns) {
> var ret="";
> var i;
> for(i=0; i < columns; i++) {
> ret+="|column "+(i+1) + " |"+"\n";
> }
> ret+="\n";
> return ret;
> };
>
> })();
>
>
>
>
--
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/a904fa91-bd7a-4a2d-bada-bf00999abaf6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.