1
0
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:
源文雨
2023-03-09 20:50:39 +08:00
parent 54e7323f63
commit b68d555c67
7 changed files with 275 additions and 13 deletions

View File

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