On 09.08.2017 00:25, RjOllos wrote:

On Tuesday, August 8, 2017 at 11:14:25 AM UTC-7, Peter Suter wrote:

    A slightly simpler version:

    return format_to_html(self.env, formatter.context, the_link)

Seems like it would be a good idea to change the example code to use format_to_html, as in your example:

, unless the example is intended to be illustrative of something.

Using format_to_html is effectively the same after two levels of indirection:

What do you think?

Yes, I thought the same thing, but I also wasn't sure if it was intended to illustrate something more general.


You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to