diff --git a/superset/assets/visualizations/table.css b/superset/assets/visualizations/table.css index 2beae00a1f727..f5e9bd378f690 100644 --- a/superset/assets/visualizations/table.css +++ b/superset/assets/visualizations/table.css @@ -23,3 +23,7 @@ table.table thead th.sorting:after, table.table thead th.sorting_asc:after, table.table thead th.sorting_desc:after { top: 0px; } + +.like-pre { + white-space: pre; +} diff --git a/superset/assets/visualizations/table.js b/superset/assets/visualizations/table.js index ed6b95cda82a0..fcf34f516b2af 100644 --- a/superset/assets/visualizations/table.js +++ b/superset/assets/visualizations/table.js @@ -72,6 +72,9 @@ function tableVis(slice, payload) { if (c === 'timestamp') { val = timestampFormatter(val); } + if (typeof(val) === 'string') { + val = `${val}`; + } return { col: c, val,