Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 386753 - Auto-format messes up JavaScript code in JSP page
Summary: Auto-format messes up JavaScript code in JSP page
Status: CLOSED DUPLICATE of bug 382474
Alias: None
Product: JSDT
Classification: WebTools
Component: Web (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.4.1   Edit
Assignee: Project Inbox CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-07 11:03 EDT by Daniel Marth CLA
Modified: 2012-08-23 16:34 EDT (History)
3 users (show)

See Also:


Attachments
Test-case (187 bytes, text/plain)
2012-08-07 11:03 EDT, Daniel Marth CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Marth CLA 2012-08-07 11:03:47 EDT
Created attachment 219626 [details]
Test-case

If you try to format JavaScript code in a JSP page, Eclipse inserts some characters that break the code.
I created a simple web application to test the bug and attached a test file. The result of using auto format in Eclipse:

<head>
<script type="text/javascript">
	<c:choose>
	<c:when test="${redirectQueryString eq 'default'}">__________
	var str = "<foag____orm>";
	____:when>
		<___
</script>
</head>



Version: Juno Release
Build id: 20120614-1722
Comment 1 Nitin Dahyabhai CLA 2012-08-23 16:34:23 EDT

*** This bug has been marked as a duplicate of bug 382474 ***