minor table change.

This commit is contained in:
Christopher Jeffrey 2015-04-03 19:03:58 -07:00
parent f34cf1bdfe
commit bcd65ad420
2 changed files with 2 additions and 7 deletions

View File

@ -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([

View File

@ -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;