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

carriage return in expression ? #28

Open
aktxyz opened this issue Feb 7, 2023 · 2 comments
Open

carriage return in expression ? #28

aktxyz opened this issue Feb 7, 2023 · 2 comments

Comments

@aktxyz
Copy link

aktxyz commented Feb 7, 2023

it looks like having a carriage return in an expression does not work, has there been any consideration around an option to allow carriage returns ? this is mainly to allow a more complicated expression to be formatted ... so not crazy important ... but hey we software types tend to like formatting :)

@rbellens
Copy link
Contributor

rbellens commented Feb 8, 2023

I guess, this could be easily added. I'll add it when I find some time. In the mean time, I think you could simply replace all carriage returns with spaces before parsing: Expression.parse(stringExpression.replaceAll('\n',' '))

@aktxyz
Copy link
Author

aktxyz commented Feb 8, 2023

Good idea on the spaces ... I am not using the Expression package directly but rather via another package ... but I have been making tweaks to that so will just stuff this in as well ... thanks !

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

2 participants