From ec3e52d60f4c241c60f8fa2fb5fc69608c1dc4f2 Mon Sep 17 00:00:00 2001 From: Dan Sosedoff Date: Sun, 26 Oct 2014 18:21:35 -0500 Subject: [PATCH] Fix CSV export for multi-line queries --- static/js/app.js | 3 +++ 1 file changed, 3 insertions(+) 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;