facebook

Bug in formatting javascript code

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

    sbriet
    Member

    I tried to format a javascript file. After this function the formatter stops formatting:

    
    function checkbrowser() {
        if (navigator.appName == "Netscape") {
            return 'NE';
        } else {
            return 'IE';
        }
    }
    function        ContributionSearch(pWindowType, pSearchTypeRadio) {// note various spaces chars after functions
    ...
    

    But if I replace :
    return ‘NE’;
    with
    var res=’NE’;
    return res;
    then the code is properly formatted afterwards (multiple spaces removed).

    Is there a fix for this?
    I am using MyEclipse Enterprise Workbench, Version: 8.6, Build id: 8.6-20100723

    Thank you

    #310418 Reply

    sbriet,
    I could replicate this at my end and I have raised a PR with the dev team.
    Thank you for bringing this up.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Bug in formatting javascript code

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