From 39a12432d7946c34280672c99258d7dfc819a384 Mon Sep 17 00:00:00 2001 From: freearhey Date: Sun, 3 Nov 2019 20:07:43 +0300 Subject: [PATCH] Added an indentation to generated tables --- scripts/helper.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/helper.js b/scripts/helper.js index dca9b32ea3..8055876bbf 100644 --- a/scripts/helper.js +++ b/scripts/helper.js @@ -151,17 +151,17 @@ helper.skipPlaylist = function(filename) { } helper.generateTable = function(data, options) { - let output = '' + let output = '
\n' - output += '' + output += '\t\n\t\t' for (let column of options.columns) { output += `` } - output += '' + output += '\n\t\n' - output += '' + output += '\t\n' for (let item of data) { - output += '' + output += '\t\t' let i = 0 for (let prop in item) { const column = options.columns[i] @@ -170,9 +170,9 @@ helper.generateTable = function(data, options) { output += `` i++ } - output += '' + output += '\n' } - output += '' + output += '\t\n' output += '
${column.name}
${item[prop]}
'