nbell12 / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
Apache License 2.0
0 stars 0 forks source link

Tabs in IE. #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If tabs are used to indent code inside <pre> IE6 and 7 won't honor them
after the script runs.

Code indented with tabs will be shown aligned to the left margin instead of
the proper indenting shown in Firefox.

I'm using Revision 20 of prettify.js, IE 6.0.29.00 in English and IE
7.0.5730.11 in Spanish.

The attached file will reproduce the problem.

Original issue reported on code.google.com by jcarras...@gmail.com on 27 Mar 2007 at 3:07

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for the example.  Does IE assume a tab width of 8?

Original comment by mikesamuel@gmail.com on 27 Mar 2007 at 6:53

GoogleCodeExporter commented 8 years ago
Normally yes, a tab width of 8 spaces, but using the script the tabs collapse 
and no
indentation is shown.

Original comment by jcarras...@gmail.com on 27 Mar 2007 at 9:45

GoogleCodeExporter commented 8 years ago
will fix

Original comment by mikesamuel@gmail.com on 28 Mar 2007 at 12:50

GoogleCodeExporter commented 8 years ago
Thanks.

Original comment by jcarras...@gmail.com on 28 Mar 2007 at 10:29

GoogleCodeExporter commented 8 years ago
I believe this is fixed now.

Testcase at
http://google-code-prettify.googlecode.com/svn/trunk/tests/prettify_test.html#is
sue8

Changelog at http://google-code-prettify.googlecode.com/svn/trunk/CHANGES.html

Original comment by mikesamuel@gmail.com on 2 Apr 2007 at 6:54