Hi Tobias

I am using the script for splitting the text on the HR separator and
putting the results in a table here:
http://dl.getdropbox.com/u/1064531/SangTimer/SangTimer.html#SangBogen2Table

I hope you can find your way - it's in Danish...

The TW is a work in progress - and I haven't decided which variant of
the script I will use yet..

Regards Måns Mårtensson

On 7 Sep., 16:38, Tobias <[email protected]> wrote:
> Hi Måns,
>
> Can you show us the final solution which you're using after all of
> this?
> I'd be interested in seeing it work rather than reading about how it
> should ;-)
>
> Tobias.
>
> On Sep 7, 1:58 am, Måns <[email protected]> wrote:
>
>
>
> > Thanks a lot Eric
>
> > As you know I like many options :-)
>
> > YS Måns Mårtensson
>
> > On 6 Sep., 22:13, Eric Shulman <[email protected]> wrote:
>
> > > > Can I "automake" a hr-seperated list from a normal lineseperated list
> > > > with quickeditplugin in some way?
>
> > > If the tiddler contains single lines, you could use it as is, by
> > > changing the script from
> > >    var items=store.getTiddlerText("$1","").split("\n----\n")
> > > to just
> > >    var items=store.getTiddlerText("$1","").split("\n");
>
> > > Alternatively, here's some general-purpose code that first tries to
> > > split the text on the HR separator... and if only one item results
> > > (i.e., there are *no* HR separators in the text), then tries splitting
> > > on just a simple newline, allowing either format to be used, as
> > > appropriate:
>
> > >    var txt=store.getTiddlerText("$1","");
> > >    var items=txt.split("\n----\n");
> > >    if (!items[1]) items=txt.split("\n");
>
> > > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to