diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-05-10 21:25:10 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-05-10 21:25:10 +0100 |
| commit | 1417c93bebe0426be97d8f334fc279a6eb10deda (patch) | |
| tree | f3c3505e247f7f5a7a0e93b452d38dae8815a580 /lib/documents.js | |
| parent | cda64f608faf532bb67a131453269edfa888955a (diff) | |
Add support for table cells spanning multiple rows
Diffstat (limited to 'lib/documents.js')
| -rw-r--r-- | lib/documents.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/documents.js b/lib/documents.js index 8b979c2..5665198 100644 --- a/lib/documents.js +++ b/lib/documents.js @@ -1,6 +1,6 @@ var _ = require("underscore"); -var types = { +var types = exports.types = { document: "document", paragraph: "paragraph", run: "run", @@ -144,7 +144,8 @@ function TableCell(children, options) { return { type: types.tableCell, children: children, - colSpan: options.colSpan == null ? 1 : options.colSpan + colSpan: options.colSpan == null ? 1 : options.colSpan, + rowSpan: options.rowSpan == null ? 1 : options.rowSpan }; } |
