facebook

PRE doesn’t break lines

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #249259 Reply

    Hello,

    In the HTML designer, this source:

    <PRE>Test
    test
    test
    </PRE>

    renders as

    Test test test

    (ie. without the newlines).

    #249279 Reply

    Kapil Kapre
    Member

    Aaron,
    I tried this in 4.1.1GA and it worked as expected. Which version of ME are you on?

    #249387 Reply

    Kapil,

    I’m using 4.1.1GA. Here is my test:

    <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
    <html>
    <head>
    <meta http-equiv=”Content-Type” content=”text/html; charset=ISO-8859-1″>
    <title>Insert title here</title>
    </head>
    <body>
    <H1>Title</H1>
    <P>Before</P>
    <PRE>
    xxx
    xxx
    xxx
    </PRE>
    <P>After</P>
    </body>
    </html>

    When I put this into “test.html” and then open the file with the designer, I get this result:

    Title
    Before
    
     xxx xxx xxx
    
    After

    Note the blank before the first “xxx”: This means that the designer notices the line break but it seems to replace them with ” “.

    Regards,

    #249388 Reply

    Kapil Kapre
    Member

    Aaron,
    I just confirmed this is a bug and filed it. I had tried it the first time in a .JSP and it worked fine. This bug seems to affect only HTML files at present. Thanks for bringing it to our attention.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: PRE doesn’t break lines

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