Skip to content

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