diff --git a/lib/docxtable.js b/lib/docxtable.js index d7d26932..71fc6822 100644 --- a/lib/docxtable.js +++ b/lib/docxtable.js @@ -105,16 +105,16 @@ module.exports = { _getColSpecs: function(cols, opts) { var self = this; - return cols[0].map(function(val, idx) { - return self._tblGrid(opts); + return cols[0].map(function(col, idx) { + return self._tblGrid(opts, col); }); }, // TODO - _tblGrid: function(opts) { + _tblGrid: function(opts, col) { return { "w:gridCol": { - "@w:w": opts.tableColWidth || "1" + "@w:w": col.opts.cellColWidth || opts.tableColWidth || "1" } }; },