facebook

Autoformatting removes my spaces [Enhancement]

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #198930 Reply
    <%@ page language="java" %>
    <%
      String name = "Foo Bar";
    %>
    
    <html>
    <body>
    <h1>Welcome <%=name%> to this page!</h1>
    </body>
    </html>

    Becomes this after formatting :

    <%@ page language="java" %>
    <%
      String name = "Foo Bar";
    %>
    
    <html>
      <body>
        <h1>Welcome<%=name%>to this page!</h1>
      </body>
    </html>

    This is a problem. The first chunk will show : “Welcome Foo Bar to this page!”, the second will show “WelcomeFoo Barto this page!” The formatter consistantly will remove leading and trailing spaces around <%= %> scriptlets. I do not know if this is true for more complicated scriptlet code or not.

    #198938 Reply

    Scott Anderson
    Participant

    Thanks for letting us know and including such a nice problem description. I’ve entered it into our internal tracking system so we can address it in the next service release.

    –Scott
    MyEclipse Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Autoformatting removes my spaces [Enhancement]

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