Bug 400695 - Extra indentation level when using spaces for the Tab policy
Summary: Extra indentation level when using spaces for the Tab policy
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: Web (show other bugs)
Version: 3.4.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Chris Jaun CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-13 10:16 EST by Nick Sandonato CLA
Modified: 2013-06-19 11:11 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Sandonato CLA 2013-02-13 10:16:46 EST
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.