[update] 点击目次,附录(前面的空格去掉
This commit is contained in:
@@ -1794,6 +1794,15 @@ export default {
|
|||||||
} else if (list[i].GetIndLeft() == 1417) {
|
} else if (list[i].GetIndLeft() == 1417) {
|
||||||
list[i].SetIndLeft(720)
|
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()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user