facebook

JSP Editor tab indenting problem in version 2.6.4 [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #200093 Reply

    dionic
    Member

    I’ve recently upgraded to MyEclipseIDE 2.6.4 (using Eclipse 2.1.1) and I’ve noticed the following problem in the JSP Editor:

    When selecting multiple lines of jsp code and pressing the TAB key to indent the code, more lines than the selected number of lines get indented.
    Some kind of intelligent indenting seems to be occurring. This appears to only happen between angle bracket code tags < and >.
    This includes jsp tags:
    e.g. Assume the following code is formatted as follows:

    <%
            String indent = "twice";
        String indent2 = "once";
        String indent3 = "once";
    %>
    

    Then select the 2 lines with the single indent, excluding the double indented line as well as the start and end jsp tags.
    Now press the Tab key. The following results:

        <%
                String indent = "twice";
            String indent2 = "once";
            String indent3 = "once";
        %>
    

    instead of the expected:

    <%
            String indent = "twice";
            String indent2 = "once";
            String indent3 = "once";
    %>
    

    This doesn’t happen with just jsp code tags, but any tag beginning with < ending with > and spanning multiple lines.
    This includes HTML comment tags: <!– and –>, and even simple HTML tags that span multiple lines (although this is not common practice, I tested it to try an isolate the problem).
    This doesn’t happen in the Java Editor of version 2.6.4 and it never used to happen in the JSP Editor of version 2.6.3.

    #200102 Reply

    support-michael
    Keymaster

    Thanks for the good research. I was able to replicate your results and have entered an issue report regarding this behavior (tracking number = 277).

    Regards,

    Michael
    MyEclipse Support

    #200863 Reply

    Scott Anderson
    Participant

    This issue was fixed in 2.7 RC1 so I’m closing this thread.

    –Scott
    MyEclipse Support

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: JSP Editor tab indenting problem in version 2.6.4 [Closed]

You must be logged in to post in the forum log in