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

fix: incorrectly removing initial characters due to trailing whitespace #28

Merged
merged 3 commits into from
May 2, 2024

Conversation

chelkyl
Copy link
Contributor

@chelkyl chelkyl commented Apr 26, 2024

This PR resolves issue #27 by updating the internal getIndent function to use trimStart instead of trim so that it only counts whitespace at the beginning.
See internal test-issue27 from the playground.

Copy link

changeset-bot bot commented Apr 26, 2024

🦋 Changeset detected

Latest commit: 956acef

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
astro-remote Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Adammatthiesen Adammatthiesen self-assigned this Apr 26, 2024
@Adammatthiesen Adammatthiesen added the enhancement New feature or request label Apr 26, 2024
Adammatthiesen
Adammatthiesen previously approved these changes Apr 26, 2024
Copy link
Collaborator

@Adammatthiesen Adammatthiesen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking great! Thank you @chelkyl, this patch will be much appreciated within the entire astro community! let me get Nate to double check and hopefully we will have it integrated here in the next week or so!

@chelkyl
Copy link
Contributor Author

chelkyl commented Apr 27, 2024

Sounds good! The force push was to correct the changeset reference from indent to getIndent.

Copy link
Owner

@natemoo-re natemoo-re left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, thanks for the fix!

@natemoo-re natemoo-re linked an issue May 2, 2024 that may be closed by this pull request
@natemoo-re natemoo-re merged commit 689c819 into natemoo-re:main May 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trailing spaces causes initial characters to be swallowed
3 participants