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

Backslash handling #48

Open
amadanmath opened this issue Dec 14, 2018 · 1 comment
Open

Backslash handling #48

amadanmath opened this issue Dec 14, 2018 · 1 comment
Labels

Comments

@amadanmath
Copy link
Contributor

javascript:
  let foo = "bar\nbaz";

currently erroneously renders as

  let foo = "bar
baz";

I believe the backslash in HTML (or JavaScript) should be passed literally, not interpreted as string escape by Crystal, except inside Crystal interopolation #{...}.

@jeromegn
Copy link
Owner

You're right.

I'm not sure when I'll get to it though. PRs are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants