Hey!
You need to use regex to remove the icon stuff. Try this:
var tids=store.getTiddlerText("FuniculaireDuLivre","").replace(/<<[\s\w
\W]+?>>/g, "").readBracketedList();w On 14 maj, 20:35, roma <[email protected]> wrote: > Dear TW wizards, > > *The context :* > I use rearrangeTiddlers, setIcons, storySaver & other plugins (mainly > Eric's) in order to put tiddlers (notes) in order, arrange them and control > their progress through visual icons (automatically thanks to > TiddlerIcons...). The goal is to turn the notes into a book step by step... > > *The problem :* > The problem is that I'd like to print the book from the list created by the > storySaver plugin. This could probably work if only I didn't change this > plugin in order to get the list with the icon reflecting the level of > achievement for each tiddler (thanks to setIcons plugin, etc.). > > As a matter of fact, I get the "story" list of tiddlers like this : > [[tiddler 1]]<<tiddlerIcons "=tiddler 1">> > [[tiddler 2]]<<tiddlerIcons "=tiddler 2">> > etc. > > So that when I am looking for printing, Eric's script : > > <script label="impression" title="ouvre tous les titres du document pour > impression"> > var > tids=store.getTiddlerText("FuniculaireDuLivre","").readBracketedList(); > if (!tids || !tids.length) return; > story.closeAllTiddlers(); > story.displayTiddlers(null,tids); > window.print(); > </script> > > renders some false tiddlers like : > "chchTiddlers" > "=tiddler 1" > etc. > > *My guess as a solution :* > Thus, the script should find any "<<tiddlerIcons "=tiddler x">>" to cancel > before opening the window print... > > I am just a TW user (and fan) and never studied javascript (only html & css > by myself) : could someone help me to do this ? > > Thanks in advance... -- 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 http://groups.google.com/group/tiddlywiki?hl=en. For more options, visit https://groups.google.com/groups/opt_out.

