diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-05-02 11:32:44 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-05-02 11:32:44 +0100 |
| commit | 1b54156c52caf3f2e9fe7eef29ba5ce6bd098ded (patch) | |
| tree | 27ef84d722fd7d0529b79c3639c5498ea98e6a1c /lib/documents.js | |
| parent | 7348d90d8eb3120e901c0c7adf284c22e44ac5d0 (diff) | |
Read colSpan for table cells
Diffstat (limited to 'lib/documents.js')
| -rw-r--r-- | lib/documents.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/documents.js b/lib/documents.js index 4e4211b..8b979c2 100644 --- a/lib/documents.js +++ b/lib/documents.js @@ -139,10 +139,12 @@ function TableRow(children) { }; } -function TableCell(children) { +function TableCell(children, options) { + options = options || {}; return { type: types.tableCell, - children: children + children: children, + colSpan: options.colSpan == null ? 1 : options.colSpan }; } |
