mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-05 15:50:24 +08:00
14 lines
258 B
Go
14 lines
258 B
Go
package docxlib
|
|
|
|
// AddParagraph adds a new paragraph
|
|
func (f *Docx) AddParagraph() *Paragraph {
|
|
p := &Paragraph{
|
|
Children: make([]ParagraphChild, 0, 64),
|
|
file: f,
|
|
}
|
|
|
|
f.Document.Body.Paragraphs = append(f.Document.Body.Paragraphs, p)
|
|
|
|
return p
|
|
}
|