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

Reset not only whitespaces but comments too. #9

Merged
merged 1 commit into from
Jan 7, 2017

Conversation

jiuka
Copy link
Contributor

@jiuka jiuka commented Jan 7, 2017

The logic to backtrack to the last non-whitespace on the previous line should also backtrack comments. Otherwise the following example would be generate a warning that the ensure line is indented to fare.

class () {
  file {
    'this': #comment
      ensure  => 'present',
  }
}

@relud
Copy link
Contributor

relud commented Jan 7, 2017

Nice catch, thanks! I'll release an updated gem later today.

@relud relud merged commit f335866 into voxpupuli:master Jan 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants