diff --git a/README.md b/README.md index 50f45e3..1466e98 100644 --- a/README.md +++ b/README.md @@ -1179,7 +1179,7 @@ A stylized table of text elements with a list. ##### Methods: -- inherits all from Box. +- inherits all from List. - __setRows/setData(rows)__ - set rows in table. array of arrays of strings. ``` js table.setData([ diff --git a/lib/widget.js b/lib/widget.js index 1a0b71d..cca0c76 100644 --- a/lib/widget.js +++ b/lib/widget.js @@ -7076,16 +7076,11 @@ Table.prototype.setData = function(rows) { text += cell; }); - text += '\n'; if (!isFooter) { - text += '\n'; + text += '\n\n'; } }); - if (text[text.length - 1] === '\n') { - text = text.slice(0, -1); - } - delete this.align; this.setContent(text); this.align = align;