- This topic has 6 replies, 3 voices, and was last updated 20 years, 11 months ago by Scott Anderson.
-
AuthorPosts
-
Riyad KallaMemberSystem:
ME 2.6.4
E 2.1.2
JDK 1.4.2_02
Gentoo Linux 1.4, 2.4.23 Kernel, KDE 3.1.4If 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?
Riyad KallaMemberOh 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
Scott AndersonParticipantHow does it look if you set ‘Force line break before’ to Yes?
How about Force line break after also? Better?–Scott
MyEclipse Support
Riyad KallaMemberI 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.
No OperationMembermight be related to different line feeds:
Windows: \r\n
Linux: \nNOP
Riyad KallaMemberNop 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
Scott AndersonParticipantGood 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 -
AuthorPosts