summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/DataTable.vue
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/src/components/DataTable.vue')
-rw-r--r--webapp/src/components/DataTable.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/src/components/DataTable.vue b/webapp/src/components/DataTable.vue
index 36b44f3..93eb674 100644
--- a/webapp/src/components/DataTable.vue
+++ b/webapp/src/components/DataTable.vue
@@ -462,7 +462,8 @@ export default {
let rowString = ''
for (let i in keys) {
let value = row.data[keys[i]]
- if (typeof value === 'string' && (value.indexOf(',') !== -1 || value.indexOf('"') !== -1)) value = JSON.stringify(value)
+ if (typeof value === 'string' &&
+ (value.indexOf(',') !== -1 || value.indexOf('"') !== -1 || value.indexOf('\n') !== -1)) value = JSON.stringify(value)
else if (typeof value === 'object') value = JSON.stringify(JSON.stringify(value))
if (value) rowString += value
if (i < topIndex) rowString += ','