Hi Jon I've added a variant that adds the triple double quotes to the top and bottom of each converted tiddler:
https://gist.github.com/Jermolene/9ed9c11ff79f5c847ce8 Best wishes Jeremy. On Sat, Mar 14, 2015 at 8:34 AM, Jon <[email protected]> wrote: > Hi Jeremy, > > That worked perfectly to replace a single line break with two. > > The original text file and desired end result is: > line 1 > line 2 > > After import it is: > line 1 line 2 > > and after applying the code it is: > line 1 > > line 2 > > > I went back to the original thread > https://groups.google.com/forum/#!topic/tiddlywiki/KSqy_NFMDaA and picked > up Jed's suggestion of using <br> and wondered if that could be automated > with your code so I replaced the bit at the end (/\n/mg,"\n\n")}))}); with > (/\n/mg,"<br>")}))}); > > Not having a clue what I'm doing, I was amazed to find that this actually > works. However, I suspect this is a bit like me hitting something with a > big hammer! > > So, whilst this does the job and the resulting tiddlers look perfect, in > edit mode the text is peppered with <br> > > Now, if it was possible to alter the code a bit to insert """ at the top > of the tiddler, then that might be a more elegant solution. > > However, in the absence of that, I'm a very happy camper! > > Thanks again > Jon > > > > > > On Friday, 13 March 2015 11:31:24 UTC, Jon wrote: >> >> My saviour! >> >> Thanks, Jon >> >> On Friday, 13 March 2015 11:28:16 UTC, Jeremy Ruston wrote: >> >>> Hi Jon >>> >>> Here you go: >>> >>> https://gist.github.com/Jermolene/9ed9c11ff79f5c847ce8 >>> >>> Let me know how you get on, >>> >>> Best wishes >>> >>> Jeremy >>> >>> >>> On Fri, Mar 13, 2015 at 11:00 AM, Alex Hough <[email protected]> wrote: >>> >>>> there's an idea.... TiddlyWiki wall paper anyone? >>>> >>>> >>>> >>>> On 13 March 2015 at 10:44, Jon <[email protected]> wrote: >>>> >>>>> Hi Jeremy, >>>>> >>>>> >>>>>> Alternatively, a little scrap of JavaScript could be used to perform >>>>>> the search and replace within TiddlyWiki, once the files have been >>>>>> imported. >>>>> >>>>> https://groups.google.com/forum/#!topic/tiddlywiki/KSqy_NFMDaA >>>>> >>>>> Please forgive my cheek! >>>>> Thanks >>>>> Jon >>>>> >>>>> >>>>> -- >>>>> 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. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> -- >>>> 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. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >>> >>> -- >>> Jeremy Ruston >>> mailto:[email protected] >>> >> -- Jeremy Ruston mailto:[email protected] -- 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. For more options, visit https://groups.google.com/d/optout.

