# HG changeset patch # User Raimund Renkert # Date 1484670551 -3600 # Node ID 423b5f620467db5b8e7680d0ea1dd369d0f1b4b0 # Parent 1d9552e05b76905c5f2d5a4574f7d74b23cf1cb7# Parent c0db68c9a87dd8cf7a6a56858fb6f2a3ba781a4c merged. diff -r 1d9552e05b76 -r 423b5f620467 src/main/java/de/intevation/lada/model/stammdaten/Query.java --- a/src/main/java/de/intevation/lada/model/stammdaten/Query.java Tue Jan 17 17:28:21 2017 +0100 +++ b/src/main/java/de/intevation/lada/model/stammdaten/Query.java Tue Jan 17 17:29:11 2017 +0100 @@ -80,7 +80,8 @@ } public String getSql() { - return this.sql; + // remove \r and \n from sql text + return this.sql.replaceAll("(\r\n|\n)", " "); } public void setSql(String sql) {