1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-08 17:20:26 +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

@@ -111,6 +111,19 @@ func (r *Run) parse(d *xml.Decoder, tt xml.StartElement) (child interface{}, err
case "tab":
child = &Tab{}
case "AlternateContent":
/*var value AlternateContent
value.file = r.file
err = d.DecodeElement(&value, &tt)
if err != nil && !strings.HasPrefix(err.Error(), "expected") {
return nil, err
}
if value.Choice == nil {
return nil, nil
}
if value.Choice.Requires != "wps" && value.Choice.Requires != "wpc" && value.Choice.Requires != "wpg" {
return nil, nil
}
child = &value*/
altcont:
for {
tok, err1 := d.Token()