better newline handling

This commit is contained in:
gnembon committed 2019-07-03 21:51:42 -03:00
1 parent b1df45a53b
commit 8d61c6a969
1 file changed
+3 -1
+3 -1
View File
@@ -2587,7 +2587,9 @@ public class Expression implements Cloneable
*/ */
public Expression(String expression) public Expression(String expression)
{ {
this.expression = expression.trim().replaceAll(";+$", ""); this.expression = expression.trim().
replaceAll("\\r\\n?", "\n").
replaceAll(";+$", "");
//this.expression = expression.replaceAll("\\$", "\n").trim(); //this.expression = expression.replaceAll("\\$", "\n").trim();
VariablesAndConstants(); VariablesAndConstants();
UserDefinedFunctionsAndControlFlow(); UserDefinedFunctionsAndControlFlow();