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

Terminating characters \n and $ not working as expected. #28

Open
sjb-ch1mp opened this issue Nov 21, 2020 · 0 comments
Open

Terminating characters \n and $ not working as expected. #28

sjb-ch1mp opened this issue Nov 21, 2020 · 0 comments

Comments

@sjb-ch1mp
Copy link
Owner

The former is caused by \n characters being trimmed after the script element is processed into statements. A possible solution could be to re-append the \n character, and remove it (or escape it) prior to printing to output.

The latter is caused by the way in which the strings are manipulated during tag extraction. As the loop searches for the string of least length that satisfies the regex, the last character is trimmed away and the end of the line, i.e. $, moves one character to the left. Unsure how to solve this one.

@sjb-ch1mp sjb-ch1mp changed the title Terminating charactera \n and $ not working as expected. Terminating characters \n and $ not working as expected. Nov 21, 2020
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

No branches or pull requests

1 participant