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

Indent on multiline comments #41

Closed
jaridmargolin opened this issue Mar 17, 2014 · 4 comments
Closed

Indent on multiline comments #41

jaridmargolin opened this issue Mar 17, 2014 · 4 comments
Assignees
Labels

Comments

@jaridmargolin
Copy link

Indent is not respected on multiline comments.

Example: (the first line has the correct level of indentation)

    /**
 * jsdoc comments
 */
@gfranko
Copy link
Owner

gfranko commented Mar 17, 2014

You should be able to set the escodegen adjustMultilineComment option to true, to make sure that multi-line comments line up. Like this:

  'escodegen': {
    'format': {
      'indent': {
        'adjustMultilineComment': true
      }
    }
  }

@gfranko gfranko closed this as completed Mar 17, 2014
@jaridmargolin
Copy link
Author

Compiled code is so pretty now :D Should be enabled by default. I can dig around and submit a PR?

@gfranko
Copy link
Owner

gfranko commented Mar 17, 2014

It's getting better! And I would love a PR for this to be added as a default option. The change will most likely be here

@gfranko
Copy link
Owner

gfranko commented Mar 18, 2014

The adjustMultilineComment option has been added as a default option in the 1.5.0 release.

@gfranko gfranko self-assigned this Jun 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants