Tab characters not shown in composer text area in Chrome

(Khoa Nguyen) #1

I have this simple php snippet. Copy and paste it in the composer between

// code here

But in the composer, I get different indentation between composer and preview

$categories = array(
	'Xe' => array(
		'Xe máy',
		'Xe ô tô',
	'Điện thoại, Viễn thông' => array(
		'Điện thoại',
		'Linh kiện, phụ kiện',

echo Form::select( 'categories', $categories);

Github Gist for code : snippet.php · GitHub

(Jens Maier) #2

The preview is consistent with the text you’ve pasted, but the tab characters ("\t" or 	) aren’t shown in the composer textarea…

(Khoa Nguyen) #3

Ok. I see the point. So I should see this as a feature or a bug?

(Jens Maier) #4

Not sure. Also, I may have been rash because I can paste tabs just fine — in Firefox. It’s Chrome that’s being weird… :confused:

(Khoa Nguyen) #5

I think this is a Chrome bug. Tabs doesn’t show up in raw document either

In Firefox, they are fine.

Tested with latest Chrome and Firefox on Windows 8.1 and Ubuntu 14.04

(Jeff Atwood) #6

You would need to test in IE and Safari but I would not expect tabs to show up in the composer.

(Gerhard Schlager) #7

This could be a bug in Chrome. Looks like it depends on the text that follows the tab.

This works:


This doesn’t work. Chrome strips the tab character…

	Viễn thông

(Khoa Nguyen) #8

Can’t test on Safari (have no Mac). Will test on IE when I have a Windows PC nearby.

@gerhard looks like you’re right. That character has HTML code ễ .

Update: IE are good.
@codinghorror: this is a Chrome specific bug