[update] 点击目次,附录(前面的空格去掉

This commit is contained in:
lideqin
2024-07-22 15:20:00 +08:00
parent 7849e183c8
commit 37df178fbf
+9
View File
@@ -1794,6 +1794,15 @@ export default {
} else if (list[i].GetIndLeft() == 1417) {
list[i].SetIndLeft(720)
}
// 附录(前面的空格去掉
if (list[i].GetText().indexOf('(') !== -1 && list[i].GetText().indexOf('附 录') !== -1 || list[i].GetText().indexOf('附录') !== -1) {
let text = list[i].GetText()
const textBr = text.substring(4, 5)
if (textBr === ' ') {
const oRange1 = Api.CreateRange(list[i], 4, 4)
oRange1.Delete()
}
}
}
}
}