-
Notifications
You must be signed in to change notification settings - Fork 22
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
Remove extra indentation #41
Remove extra indentation #41
Conversation
continue | ||
} | ||
|
||
line_indent := len(line) - len(strings.TrimLeft(string(line), " ")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we only need single-byte spaces?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's up to you to decide, but if we want to manage more characters than just single-byte space and tabs, it may become complicated to manage and we may have to find an external library
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add support some other cases.
Thank you! |
Add an option to remove extra indentation accordingly with #30