facebook

autoformat / newline before link

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

    jslate73
    Participant

    It seems to me that auto formatting for HTML misbehaves by inserting a newline before an anchor tag. Given the following code:

    
    testingtestingtestingtestingtestingtestingtestingtestingtestingtestingtestingtestingtestingtesting<a href="foo">foo</a>
    

    Running “Source > Format” will insert a newline before the opening anchor tag. The result is that the output, when viewed in a web browser, is different after the formatting than it is before formatting, in that there is a space before the word “foo.”

    Is there any way to disable this behavior? I find it really annoying because we often have links in our pages that look like this: [foo]. If the formatter decides to put a newline before the anchor tag, it ends up like this: [ foo]

    Thanks,
    Jonathan

    #287963 Reply

    Loyal Water
    Member

    Jonathan,
    I can see why your facing an issue here but unfortunately this behavior cannot be disabled. The only workaround is to avoid using the formatter. Sorry about that.

    #287983 Reply

    jslate73
    Participant

    That’s too bad. Maybe I’ll make a jsp tag for a link surrounded by square brackets. Or figure out how to submit a bug. Or both. 🙂 Anyway, thanks for the response.

    #288198 Reply

    Loyal Water
    Member

    Sorry for the inconvenience.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: autoformat / newline before link

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