[update] 插入附录,找不到附录标题排序的就不算此附录排序
This commit is contained in:
@@ -132,6 +132,7 @@
|
||||
const text = element.GetTableDescription()
|
||||
if (text == 'appendix') {
|
||||
let number = element.GetCell(0, 0).GetContent().GetElement(1);
|
||||
if (number) {
|
||||
const getNumbering = number.GetNumbering()
|
||||
if (getNumbering !== null) {
|
||||
oNumbering = getNumbering;
|
||||
@@ -140,6 +141,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
oTable.SetTableDescription("appendix");
|
||||
if (!oNumbering) {
|
||||
oNumbering = oDocument.CreateNumbering("numbered");
|
||||
|
||||
Reference in New Issue
Block a user