1
0
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:
源文雨
2023-02-22 21:05:15 +08:00
parent 9f0dbc43d1
commit 8f87a17722
9 changed files with 81 additions and 555 deletions

View File

@@ -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
}