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

Remove extra indentation #41

Merged
merged 7 commits into from
Mar 20, 2025

Conversation

0xN0x
Copy link
Contributor

@0xN0x 0xN0x commented Feb 28, 2025

Add an option to remove extra indentation accordingly with #30

continue
}

line_indent := len(line) - len(strings.TrimLeft(string(line), " "))
Copy link
Owner

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?

Copy link
Contributor Author

@0xN0x 0xN0x Mar 2, 2025

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

Copy link
Owner

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.

@matsuyoshi30
Copy link
Owner

Thank you!

@matsuyoshi30 matsuyoshi30 merged commit e120b36 into matsuyoshi30:main Mar 20, 2025
4 checks passed
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