[vis] render line breaks in TableViz (#2118)

* convert line breaks to br tags in table vis

* use css!
This commit is contained in:
Alanna Scott
2017-02-10 11:51:18 -08:00
committed by GitHub
parent daa1420c8e
commit 2d910e3f07
2 changed files with 7 additions and 0 deletions

View File

@@ -72,6 +72,9 @@ function tableVis(slice, payload) {
if (c === 'timestamp') {
val = timestampFormatter(val);
}
if (typeof(val) === 'string') {
val = `<span class="like-pre">${val}</span>`;
}
return {
col: c,
val,