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

Key: IDEA-18575
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Obsolete
Assignee: Alexey Pegov
Reporter: W Q
Votes: 0
Watchers: 2
Operations

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

JSP: incorrect indentation on multiline <label>

Created: 25 Jun 08 23:07   Updated: 01 Nov 08 19:26
Component/s: J2EE.JSP

Build: 7,757


 Description  « Hide
Put the following snippet in a well-form HTML JSP file:

<div id="interface">
<form action="" name="advSearch" id="advSearch">
<div id="x">
<label>
Enable
</label>
<input type="checkbox" id="y" name="y"/>
</div>
</form>
</div>

Format the JSP file, then you will see the indentations are all shifted to the left incorrectly. Removing the carriage returns around the label text, like

<div id="interface">
<form action="" name="advSearch" id="advSearch">
<div id="x">
<label>Enable</label>
<input type="checkbox" id="y" name="y"/>
</div>
</form>
</div>

and format again, the indentation is right.

This is quite annoying for large JSP as one has to hunt down the cause.



 All   Comments   Work Log   Change History      Sort Order:
W Q - 25 Jun 08 23:15
The same is true for multiline <noscript> element. I think this is a more general bug.

<noscript>
</noscript>