mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-19 09:00:31 +08:00
add KeepElements & DropDrawingOf
This commit is contained in:
@@ -32,12 +32,12 @@ func (f *Docx) AddParagraph() *Paragraph {
|
||||
|
||||
// AddParagraph adds a new paragraph
|
||||
func (c *WTableCell) AddParagraph() *Paragraph {
|
||||
c.Paragraphs = append(c.Paragraphs, Paragraph{
|
||||
c.Paragraphs = append(c.Paragraphs, &Paragraph{
|
||||
Children: make([]interface{}, 0, 64),
|
||||
file: c.file,
|
||||
})
|
||||
|
||||
return &c.Paragraphs[len(c.Paragraphs)-1]
|
||||
return c.Paragraphs[len(c.Paragraphs)-1]
|
||||
}
|
||||
|
||||
// Justification allows to set para's horizonal alignment
|
||||
|
||||
Reference in New Issue
Block a user