Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inconsistent indenting in objects, particularly of functions #6

Open
GoogleCodeExporter opened this issue Feb 25, 2016 · 2 comments
Open

Comments

@GoogleCodeExporter
Copy link

attempt to indent the following object (or dictionary / associative array / 
hashtable, whatever you like to call them):

{
    func1 : function () {
                //indents beneath function keyword
            },
          key2 : 'now in the wrong place',
    a_list : [
        'much better',
    'what??',
    'weird'
        ],
    another_function : function () {
        var inconsistently_ended_up_here;
    },
    another_function: function () {
                          //this time here
}

What is the expected output? What do you see instead?

desired output would be: indentation steps in one after braces or list openers,
indentation returns to normal level for each new key


Original issue reported on code.google.com by [email protected] on 25 Jan 2011 at 11:58

@GoogleCodeExporter
Copy link
Author

Wow.  That is strange and completely incorrect.  I will look into this and get 
back to you.  I'm sorry I've been away for so long.  I'm going to be taking 
some time to get this script back into top form.  

Original comment by [email protected] on 2 Apr 2011 at 1:29

@GoogleCodeExporter
Copy link
Author

Hey I looked into to your issue and was able to correctly indent all the text.  
Are you using the latest version?  

Original comment by [email protected] on 17 Apr 2011 at 10:20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant