Skip to content

Commit 5a6b406

Browse files
committed
fix(table): always use first row as template for new rows; see #63
1 parent 6a0ab36 commit 5a6b406

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/modify/modify-table.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Border, Modification, ModificationTags } from '../types/modify-types';
1010
import ModifyTextHelper from '../helper/modify-text-helper';
1111
import { ModifyColorHelper } from '../index';
1212
import { XmlDocument, XmlElement } from '../types/xml-types';
13-
import { GeneralHelper, vd } from '../helper/general-helper';
13+
import { GeneralHelper } from '../helper/general-helper';
1414

1515
export class ModifyTable {
1616
data: TableData;
@@ -109,6 +109,7 @@ export class ModifyTable {
109109
row = (index: number, children: ModificationTags): ModificationTags => {
110110
return {
111111
'a:tr': {
112+
forceCreate: true,
112113
index: index,
113114
children: children,
114115
},

0 commit comments

Comments
 (0)