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

Comment indentation is incorrect for last scenario #27

Closed
twebner opened this issue Jan 17, 2020 · 1 comment · Fixed by #28
Closed

Comment indentation is incorrect for last scenario #27

twebner opened this issue Jan 17, 2020 · 1 comment · Fixed by #28

Comments

@twebner
Copy link

twebner commented Jan 17, 2020

When I add a comment after a scenario and format it with ghokin, normally it gets indented with 2 spaces (using default config).

But if I add a comment after the last scenario and format it with ghokin, it instead gets indented to the same level as whatever is above it. So if the previous line is a Then indented with 4 spaces, the comment is also indented with 4 spaces. If the previous line is a row in an Examples table indented with 6 spaces, the comment is also indented with 6 spaces.

@antham
Copy link
Owner

antham commented Jan 18, 2020

Hi, thank you for reporting.

Check out the last version https://github.com/antham/ghokin/releases/tag/v1.2.2 and tell me if it solves your problem.

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 a pull request may close this issue.

2 participants