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:
4
empty.go
4
empty.go
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user