@zphhhhh/docx-preview 0.4.22 → 0.4.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3479,8 +3479,8 @@ class DocumentParser {
3479
3479
  style["vertical-align"] = values.valueOfTextAlignment(c);
3480
3480
  break;
3481
3481
  case "tcW":
3482
- if (this.options.ignoreWidth) ;
3483
- break;
3482
+ if (this.options.ignoreWidth)
3483
+ break;
3484
3484
  case "tblW":
3485
3485
  style["width"] = values.valueOfSize(c, "w");
3486
3486
  break;
@@ -6572,6 +6572,9 @@ class HtmlRendererSync {
6572
6572
  this.tableVerticalMerges.push(this.currentVerticalMerge);
6573
6573
  this.currentVerticalMerge = {};
6574
6574
  this.currentCellPosition = { col: 0, row: 0 };
6575
+ if (elem.columns) {
6576
+ this.renderTableColumns(elem.columns, oTable);
6577
+ }
6575
6578
  this.renderClass(elem, oTable);
6576
6579
  this.renderStyleValues(elem.cssStyle, oTable);
6577
6580
  let is_overflow;
@@ -6580,9 +6583,6 @@ class HtmlRendererSync {
6580
6583
  oTable.dataset.overflow = Overflow.SELF;
6581
6584
  return oTable;
6582
6585
  }
6583
- if (elem.columns) {
6584
- this.renderTableColumns(elem.columns, oTable);
6585
- }
6586
6586
  oTable.dataset.overflow = yield this.renderChildren(elem, oTable);
6587
6587
  this.currentVerticalMerge = this.tableVerticalMerges.pop();
6588
6588
  this.currentCellPosition = this.tableCellPositions.pop();