fix 选了章、条一等格式后,正文也自带格式了。无法恢复正文格式问题
This commit is contained in:
@@ -223,7 +223,9 @@
|
||||
oParagraph.SetFontFamily("黑体");
|
||||
oDocument.InsertContent([oParagraph])
|
||||
let GetNext = oParagraph.GetNext()
|
||||
GetNext.Delete()
|
||||
GetNext.SetSpacingAfter(0)
|
||||
GetNext.SetSpacingBefore(0)
|
||||
// GetNext.Delete()
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
@@ -498,7 +500,9 @@
|
||||
oParagraph.SetJc("both");
|
||||
oParagraph.SetColor(0, 0, 0);
|
||||
let GetNext = oParagraph.GetNext()
|
||||
GetNext.Delete()
|
||||
GetNext.SetSpacingAfter(0)
|
||||
GetNext.SetSpacingBefore(0)
|
||||
// GetNext.Delete()
|
||||
// oDocument.InsertContent([oParagraph])
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
@@ -735,7 +739,9 @@
|
||||
oParagraph.SetColor(0, 0, 0);
|
||||
oDocument.InsertContent([oParagraph])
|
||||
let GetNext = oParagraph.GetNext()
|
||||
GetNext.Delete()
|
||||
GetNext.SetSpacingAfter(0)
|
||||
GetNext.SetSpacingBefore(0)
|
||||
// GetNext.Delete()
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user