ActiveState Community

[[%tabstop]] issue

Posted by peter2108 on 2009-09-17 03:28

If I select a block of text in the editor containing [[%tabstop:Something]] and save as a snippet then the snippet contains
[[%%tabstop:Something]] and does not work. (But if [[%tabstop]] is presented as part of the name of the snippet a second % is not inserted there, only in the snippet body.)

Here Komodo is doing more than I asked it to - I said 'Please save my snippet' and it said 'OK, and I will edit it for you as well!'. In my experience such helpfulness is rarely helpful :-)

-- Peter

ericp | Thu, 2009-09-17 11:15

Funny how no one ran into this before[1]. Komodo should escape any
'%' character that isn't part of a tabstop, since they get
mapped back to single '%' characters at insertion-time.

The reason for the correct '%'age in the snippet's name is that
Komodo doesn't escape % chars when building it.

Logged as http://bugs.activestate.com/show_bug.cgi?id=84625

[1] Escaping '%' chars was added in p4 change 54818, Jan 2003.

peter2108 | Thu, 2009-09-17 12:55

Not often one finds a real bug :-)

-- Peter

ericp | Thu, 2009-09-17 13:02

That might be a Komodo record...