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