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: literal newline "\n" escape #29

Closed

Conversation

zhengpd
Copy link

@zhengpd zhengpd commented Dec 31, 2020

related to #28

The echo command treats "\n" from selection as non-literal string, which
causes one-line string like "hello\nworld" becoming two lines. Using
printf %s preserves it as one line.

related to ruby-formatter#28

The echo command treats "\n" from selection as non-literal string, which
causes one-line string like "hello\nworld" becoming two lines. Using
`printf %s` preserves it as one line.
@zhengpd
Copy link
Author

zhengpd commented Dec 31, 2020

Might also be related to #23

@zhengpd
Copy link
Author

zhengpd commented Mar 25, 2023

Close stale pr.

@zhengpd zhengpd closed this Mar 25, 2023
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.

1 participant