1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-04 23:30:25 +08:00

make lint happy

This commit is contained in:
源文雨
2023-03-09 17:23:20 +08:00
parent 69a899d4a5
commit 54e7323f63

View File

@@ -154,8 +154,8 @@ type ParagraphSplitRule func(*Paragraph) bool
// as the separator.
//
// The separator will be placed to the first doc item
func (doc *Docx) SplitByParagraph(separator ParagraphSplitRule) (docs []*Docx) {
items := doc.Document.Body.Items
func (f *Docx) SplitByParagraph(separator ParagraphSplitRule) (docs []*Docx) {
items := f.Document.Body.Items
newdoclop:
for len(items) > 0 {
ndoc := new(Docx)
@@ -163,9 +163,9 @@ newdoclop:
// migrate base data
ndoc.mediaNameIdx = make(map[string]int, 64)
ndoc.slowIDs = make(map[string]uintptr, 64)
ndoc.template = doc.template
ndoc.tmplfs = doc.tmplfs
ndoc.tmpfslst = doc.tmpfslst
ndoc.template = f.template
ndoc.tmplfs = f.tmplfs
ndoc.tmpfslst = f.tmpfslst
ndoc.Document.XMLW = XMLNS_W
ndoc.Document.XMLR = XMLNS_R