0

Today I noticed that the (otherwise wonderful) Code Snippet plugin doesn't handle TAB characters as I think it should:

alt text

This is three TAB separated text columns.

I used Chrome.

See also my previous question (without the Code Snippet plugin).

It looks like every TAB is still translated into four spaces, even in [code] blocks. :-(
Another example:

1: 1    1    1
2: 12    12    12
3: 123    123    123
4: 1234    1234    1234
5: 12345    12345    12345
6: 123456    123456    123456
7: 1234567    1234567    1234567
flag

1 Answer

1

I just tried to reproduce this in Chrome and FireFox and could not. What version of the plugin do you have installed?

UPDATE: Looks like code snippets are not at fault here, they're just inheriting a different behavior:

In case events, tabs are converted into 4 spaces at render time. This was done as a workaround for poor "tab" support in HTML.

As illustrated, however, it's clearly wrong. Our Rich Case Events (planned for 8.3) will fix this.

link|flag
I don't understand what you're trying to prove with your screen shot. You won't see ragged columns unless you use texts with multiple widths in one column. Every TAB is translated into four characters, even in [code] blocks. – Michel de Ruiter Dec 24 2010 at 14:04
@Michel Woops, I see what you mean now. My bad. I'm not sure whether the tab -> space conversion was intentionally or not. I'll file a bug against the developer of Code Snippets. – Rob Sobers Dec 27 2010 at 18:17

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.