mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-22 03:20:35 +08:00
refactor: Paragraph.Children to []interface{}
This commit is contained in:
@@ -10,7 +10,7 @@ func (p *Paragraph) AddTab() *Run {
|
||||
XMLName xml.Name "xml:\"w:tab,omitempty\""
|
||||
}{{}},
|
||||
}
|
||||
p.Children = append(p.Children, ParagraphChild{Run: run})
|
||||
p.Children = append(p.Children, run)
|
||||
return run
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ func (p *Paragraph) AddText(text string) *Run {
|
||||
RunProperties: &RunProperties{},
|
||||
}
|
||||
|
||||
p.Children = append(p.Children, ParagraphChild{Run: run})
|
||||
p.Children = append(p.Children, run)
|
||||
|
||||
return run
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user