Skip to content

Commit

Permalink
Fix CSV export for multi-line queries
Browse files Browse the repository at this point in the history
  • Loading branch information
sosedoff committed Oct 26, 2014
1 parent 3b00a61 commit ec3e52d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions static/js/app.js
Expand Up @@ -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;
Expand Down

0 comments on commit ec3e52d

Please sign in to comment.