To preserve line endings, put this in a tiddler marked as
"systemConfig" :

merge(config.macros.view.views,
  {
sql: function(value,place,params,wikifier,paramString,tiddler) {
      value = value.replace(/\n/gm,"<br>") ;
      highlightify(value,place,highlightHack,tiddler);
   },
  } ) ;

Make sure google groups doesn't wrap the lines. Save and reload.

In your template,  make it:

  macro='view text sql'

There's probably more that you want to preserve in your sql than the
line endings, but this might make a good start.

-- Mark

On Dec 30, 8:37 am, "Mark S." <[email protected]> wrote:
> All the text will wrap. For SQL, need something that prevents
> wikifying, but leaves in the line breaks.
>
> On Dec 30, 8:30 am, AlanBCohen <[email protected]> wrote:
>
> > Thanks Eric,
> > I'll give this a try.
> > Alan
>
>

--

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