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

