Community
Participate
Working Groups
While fixing Bug 400297, I noticed that the content of a script tag under <body> has an extra level of indentation. This is reproducible in an HTML file as well. 1. Set up tab policy in Java,JSP,JS etc. editors/formatters to use spaces only, 2 spaces per indentation level (no one formatter in my workspace uses tabs for indentation). 2. In a new HTML file add the following script under the <body> (do not indent) <script type="text/javascript"> var b; </script> 3. Format the document Notice that the var b; and </script> are indented one extra level.