facebook

Source Formatting Problem

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #295567 Reply

    Curt King
    Participant

    This might be more accurately categorized as a “Web Development” topic, but since I’m editing a JSP, I thought I’d place it here.

    I’ve got a JSP with a <th> tag that contains an “onclick” handler. When I reformat the page using “Source-Format”, the click handler for one of my tags is reformatted incorrectly.

    Here’s the “before” image:

    And the “after” image:

    Note that the appearance of the code isn’t so much the issue: the code is actually broken by the formatting.

    Any ideas on why this might be happening? Is there something I can do to correct it?

    Thanks,
    Curt

    #295609 Reply

    support-joy
    Member

    Thank you Curt for bringing this to our notice. I am able to reproduce this at my end. I am afraid, I don’t have a workaround for this right now. I would suggest you to manually correct the code. I have filed a PR for the dev team to investigate this issue.

    #295641 Reply

    Curt King
    Participant

    No problem — it’s a minor inconvenience. Thanks for your help, Joy!

    Curt

    #295644 Reply

    Ton Huisman
    Member

    What could help is to widen the jsp source formatter linewrapping, by changing the default width of 80 to, say, 140. This would be set under Window/Preference/MyEclipse Enterprise Workbench/Files and Editors/JSP, where you are relayed to the HTML and/or XML formatters. :-]

    HTH
    Ton

    #295646 Reply

    Curt King
    Participant

    Good idea, Ton. Thanks for suggesting it!

    Curt

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Source Formatting Problem

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