1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-11 11:04:54 +08:00

fix: recursive paragraph unmarshalling

This commit is contained in:
源文雨
2023-02-15 17:23:01 +08:00
parent 2771d05a51
commit 517198ded4
4 changed files with 85 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ import (
)
func newEmptyFile() *Docx {
return &Docx{
docx := &Docx{
Document: Document{
XMLName: xml.Name{
Space: "w",
@@ -45,4 +45,6 @@ func newEmptyFile() *Docx {
rId: 3,
buf: bytes.NewBuffer(make([]byte, 0, 1024*1024*4)),
}
docx.Document.file = docx
return docx
}