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

fix(#21): br decoding

This commit is contained in:
源文雨
2024-03-17 20:05:37 +09:00
parent e9a89648f8
commit 72447243cf
2 changed files with 16 additions and 3 deletions

View File

@@ -117,12 +117,12 @@ func (r *Run) parse(d *xml.Decoder, tt xml.StartElement) (child interface{}, err
case "tab":
child = &Tab{}
case "br":
var brvalue BarterRabbet
err = d.DecodeElement(&brvalue, &tt)
var value BarterRabbet
err = d.DecodeElement(&value, &tt)
if err != nil {
return nil, err
}
child = &brvalue
child = &value
case "AlternateContent":
/*var value AlternateContent
value.file = r.file