facebook

bug: formatting JSP turns it all into 1 giant long line

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

    Riyad Kalla
    Member

    System:
    ME 2.6.4
    E 2.1.2
    JDK 1.4.2_02
    Gentoo Linux 1.4, 2.4.23 Kernel, KDE 3.1.4

    If I format the following JSP file:

    
    <%@ include file="../includes/FormError.jsp" %>
    <%@ include file="../includes/PageContent.jsp" %>
    <TABLE border="0" cellpadding="10" cellspacing="0" class="PageContent" width="100%">
            <TR class="PageContentSecondaryHeaderBG">
                <TD class="PageContentSecondaryHeader">
                    <P class="PageContentSecondaryHeader">
                    </P>
                </TD>
            </TR>
        </TABLE>
        
    <%--
    <%@ include file="../includes/ExperimentGroupListing.jsp" %>
    <%@ include file="../includes/UserExperiments.jsp" %>
    --%>
    

    it gets turned into this:

    
    <%@ include file="../includes/FormError.jsp" %> <%@ include file="../includes/PageContent.jsp" %> <table border="0" cellpadding="10" cellspacing="0" class="PageContent" width="100%"> <tr class="PageContentSecondaryHeaderBG"> <td class="PageContentSecondaryHeader"> <p class="PageContentSecondaryHeader"> </p> </td> </tr> </table> <%--
    <%@ include file="../includes/ExperimentGroupListing.jsp" %>
    <%@ include file="../includes/UserExperiments.jsp" %>
    --%>
    

    Any thoughts?

    #201204 Reply

    Riyad Kalla
    Member

    Oh yes, please note my formatting options:

    
    Tab: 4
    Inser space bef tab: NO
    Lowercase tags: YES
    Force line break before: NO
    Force line break after: NO
    Remove Line Feed: YES/NO (doesn't matter)
    Update tag case: YES
    
    #201206 Reply

    Scott Anderson
    Participant

    How does it look if you set ‘Force line break before’ to Yes?
    How about Force line break after also? Better?

    –Scott
    MyEclipse Support

    #201214 Reply

    Riyad Kalla
    Member

    I didn’t try that, I will try that tommorow, but in the mean time if you copy-paste that content into a file with 2.7rc1 does it format correctly? I am reporting this against the older version so it might have already been fixed.

    #201216 Reply

    No Operation
    Member

    might be related to different line feeds:
    Windows: \r\n
    Linux: \n

    NOP

    #201219 Reply

    Riyad Kalla
    Member

    Nop excellent point, Scott does ME/Eclipse perform any explicit conversion of EOL characters before displaying it? The original code was developed on a windows machine…

    -Riyad

    #201223 Reply

    Scott Anderson
    Participant

    Good question. I don’t think the editor does any end of line translations so if you’re going between windows and Linux, this might be the issue. If we can pin it down to this I’ll enter a bug report on it.

    –Scott
    MyEclipse Support

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: bug: formatting JSP turns it all into 1 giant long line

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