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 escape characters when surrounded by whitespace #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ezekg
Copy link

@ezekg ezekg commented Apr 27, 2016

Quick and dirty fix for #47. This removes whitespace and newlines around an escape character when an escape character is present, replacing it with a single space. I'm using this currently and it does the job, but I'm positive that there is a better way to do this.

I implemented this because I didn't have too much time to dig into how the parser works. I'd imagine it'd be better to just skip over this type of escape so that the transformed output correctly compiles.

@ezekg ezekg changed the title Remove whitespace and escape characters Remove escape characters when surrounded by whitespace Apr 28, 2016
Quick and dirty fix for jsdf#47. This removes whitespace and newlines around an escape character when an escape character is present, replacing it with a single space.
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