From: Milan B. <mil...@gm...> - 2011-05-20 19:37:17
|
On Fri, May 20, 2011 at 6:44 PM, Nando Dessena <na...@de...> wrote: > I have just committed the create trigger template. It does everything > the current wizard does, except a few GUI enhancements which have been > discussed in this thread. It's the most complex template we have so far, > and probably the least readable piece of code I have ever written (I > have to say that I've never written anything in perl). Does anyone have > any ideas to make it prettier? I was thinking to stop rendering newlines > and tabs as is, so that they can be freely used for formatting (and add > {%nl%} and {%tab%} commands to replace them). Does it make sense? Makes sense, but seems too long. We could use something shorter, like @ for newline for example, but then @ would have to be escaped as well... I don't see a clean idea here. Maybe your suggestion is the best solution. -- Milan Babuskov http://www.guacosoft.com |