diff --git a/static/js/app.js b/static/js/app.js index ab7aae642..a80b5a8fd 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -241,6 +241,9 @@ function exportToCSV() { return; } + // Replace line breaks with spaces + query = query.replace(/\n/g, " "); + setCurrentTab("table_query"); var url = "http://" + window.location.host + "/query?format=csv&query=" + query;