From 54e7323f63e2f5e94bb7c9a36f00229c6e9bab65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Thu, 9 Mar 2023 17:23:20 +0800 Subject: [PATCH] make lint happy --- structdoc.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/structdoc.go b/structdoc.go index 7a5d72c..983318a 100644 --- a/structdoc.go +++ b/structdoc.go @@ -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