On Tue, Mar 11, 2014 at 9:40 PM, Stephan Beal <[email protected]> wrote:
> On Tue, Mar 11, 2014 at 9:24 PM, Horse Mans <[email protected]>
> wrote:
>>
>>   wiki('[/rptview?rn=3&subsystem=' || subsystem || '|' ||
>
>
> As far as i can see in the sources, wiki() is a th1 function, not an SQL
> function.
>

Interesting. I'm trying to drill down myself, but somewhere along the
line the following documentation was added to
src/report.c:report_format_hints(void):

  @ <p>Or, to see part of the description on the same row, use the
  @ <b>wiki()</b> function with some string manipulation. Using the
  @ <b>tkt()</b> function on the ticket number will also generate a linked
  @ field, but without the extra <i>edit</i> column:
  @ </p>
  @ <blockquote><pre>
  @  SELECT
  @    tkt(tn) AS '',
  @    title AS 'Title',
  @    wiki(substr(description,0,80)) AS 'Description'
  @  FROM ticket
  @ </pre></blockquote>
  @

Ahh, I see it now. It was added in 2007, here,
http://www.fossil-scm.org/fossil/info/d0305b305a

It appears to have been part of the 'subscript' templating language
which came before TH1. I imagine the documentation is simply out of
date. That's a shame. Perhaps there's another way to get the
formatting I'd like?

> --
> ----- stephan beal
> http://wanderinghorse.net/home/stephan/
> http://gplus.to/sgbeal
> "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
> those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
>
> _______________________________________________
> fossil-users mailing list
> [email protected]
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to