minor table change.
This commit is contained in:
parent
f34cf1bdfe
commit
bcd65ad420
|
@ -1179,7 +1179,7 @@ A stylized table of text elements with a list.
|
||||||
|
|
||||||
##### Methods:
|
##### Methods:
|
||||||
|
|
||||||
- inherits all from Box.
|
- inherits all from List.
|
||||||
- __setRows/setData(rows)__ - set rows in table. array of arrays of strings.
|
- __setRows/setData(rows)__ - set rows in table. array of arrays of strings.
|
||||||
``` js
|
``` js
|
||||||
table.setData([
|
table.setData([
|
||||||
|
|
|
@ -7076,16 +7076,11 @@ Table.prototype.setData = function(rows) {
|
||||||
|
|
||||||
text += cell;
|
text += cell;
|
||||||
});
|
});
|
||||||
text += '\n';
|
|
||||||
if (!isFooter) {
|
if (!isFooter) {
|
||||||
text += '\n';
|
text += '\n\n';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (text[text.length - 1] === '\n') {
|
|
||||||
text = text.slice(0, -1);
|
|
||||||
}
|
|
||||||
|
|
||||||
delete this.align;
|
delete this.align;
|
||||||
this.setContent(text);
|
this.setContent(text);
|
||||||
this.align = align;
|
this.align = align;
|
||||||
|
|
Loading…
Reference in New Issue