Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328892

Summary: [formatting] FormattingStrategyJSDT needs to react to SSE formatting changes
Product: [WebTools] JSDT Reporter: Ian Tewksbury <itewksbu>
Component: WebAssignee: Ian Tewksbury <itewksbu>
Status: RESOLVED FIXED QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 Flags: thatnitind: review+
Version: 3.2.3   
Target Milestone: 3.2.3   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Fix Patch with JUnits none

Description Ian Tewksbury CLA 2010-10-27 17:35:58 EDT
The SSE bug 203252 changed the way web pages are formatted.  The side affect to JSDT is that now script tags are indented when under the body tag.  The FormattingStrategyJSDT needs to be updated to calculate the indent level of the script tag preceding the JS region and indent the entire region at least that amount.  All corresponding JUnits need to be updated as well.
Comment 1 Ian Tewksbury CLA 2010-10-27 17:37:32 EDT
Created attachment 181888 [details]
Fix Patch with JUnits

Fix patch to fix up the FormattingStrategyJSDT as described in the bug description as well as updated to the corresponding JUnits.
Comment 2 Nitin Dahyabhai CLA 2010-10-27 18:42:56 EDT
Committed, thanks, Ian.
Comment 3 Nitin Dahyabhai CLA 2010-10-27 19:16:50 EDT
Released to 3.2.3 and HEAD.