History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-23725
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Maxim Shafirov
Reporter: Alexander Chernikov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Format JSP file inserts superfluous empty lines in the beginning and the end of scriptlet

Created: 05 Dec 07 16:21   Updated: 05 Dec 07 16:21
Component/s: Code Formatting and Code Style, J2EE.JSP
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 8,043


 Description  « Hide
Provide a JSP with a scriptlet. Tested:
<%@ page import="java.util.Set" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head><title>Title</title></head>
<body>
<h3>Header.</h3>

<p>
	<u>Caption</u>: <br>
	<%
	 Set rpaths = application.getResourcePaths("/");
	 if (rpaths != null) {
	 for (Object rpath : rpaths) {
		 out.print(rpath);
		 out.println("<br>");
	 }
	 }
	%>

	<%
		int i = 3;
	%>
</body>
</html>

Do format file (Ctrl + Alt + L) several times. Each time one more empty line is inserted just after '<%' and just before '%>'.
I can provide my code style settings if necessary to reproduce.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.