mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-18 16:30:27 +08:00
make lint happy
This commit is contained in:
10
structdoc.go
10
structdoc.go
@@ -154,8 +154,8 @@ type ParagraphSplitRule func(*Paragraph) bool
|
|||||||
// as the separator.
|
// as the separator.
|
||||||
//
|
//
|
||||||
// The separator will be placed to the first doc item
|
// The separator will be placed to the first doc item
|
||||||
func (doc *Docx) SplitByParagraph(separator ParagraphSplitRule) (docs []*Docx) {
|
func (f *Docx) SplitByParagraph(separator ParagraphSplitRule) (docs []*Docx) {
|
||||||
items := doc.Document.Body.Items
|
items := f.Document.Body.Items
|
||||||
newdoclop:
|
newdoclop:
|
||||||
for len(items) > 0 {
|
for len(items) > 0 {
|
||||||
ndoc := new(Docx)
|
ndoc := new(Docx)
|
||||||
@@ -163,9 +163,9 @@ newdoclop:
|
|||||||
// migrate base data
|
// migrate base data
|
||||||
ndoc.mediaNameIdx = make(map[string]int, 64)
|
ndoc.mediaNameIdx = make(map[string]int, 64)
|
||||||
ndoc.slowIDs = make(map[string]uintptr, 64)
|
ndoc.slowIDs = make(map[string]uintptr, 64)
|
||||||
ndoc.template = doc.template
|
ndoc.template = f.template
|
||||||
ndoc.tmplfs = doc.tmplfs
|
ndoc.tmplfs = f.tmplfs
|
||||||
ndoc.tmpfslst = doc.tmpfslst
|
ndoc.tmpfslst = f.tmpfslst
|
||||||
|
|
||||||
ndoc.Document.XMLW = XMLNS_W
|
ndoc.Document.XMLW = XMLNS_W
|
||||||
ndoc.Document.XMLR = XMLNS_R
|
ndoc.Document.XMLR = XMLNS_R
|
||||||
|
|||||||
Reference in New Issue
Block a user