Skip to content

Commit cc4b539

Browse files
committed
fix: #47 表格应插入到模板标签位置而不是最后一行
1 parent 2c2d455 commit cc4b539

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/MiniWord/MiniWord.Implment.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ private static void Generate(this OpenXmlElement xmlElement, WordprocessingDocum
8888
ReplaceStatements(newTr, tags: dic);
8989

9090
ReplaceText(newTr, docx, tags: dic);
91-
table.Append(newTr);
91+
//Fix #47 表格应插入到模板标签位置而不是最后一行
92+
table.InsertAfter(newTr, tr);
93+
//table.Append(newTr);
9294
}
9395
tr.Remove();
9496
}

0 commit comments

Comments
 (0)