1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-07 16:50:24 +08:00

fix: empty para in tablecell

This commit is contained in:
源文雨
2023-03-06 14:08:40 +08:00
parent bce9c3b8dc
commit e3d6e419d5
8 changed files with 178 additions and 169 deletions

View File

@@ -604,10 +604,8 @@ func (c *WTextBoxContent) UnmarshalXML(d *xml.Decoder, start xml.StartElement) e
if err != nil && !strings.HasPrefix(err.Error(), "expected") {
return err
}
if len(value.Children) > 0 {
value.file = c.file
c.Paragraphs = append(c.Paragraphs, value)
}
value.file = c.file
c.Paragraphs = append(c.Paragraphs, value)
default:
err = d.Skip() // skip unsupported tags
if err != nil {