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

feat: add_pagabreaks (#21)

This commit is contained in:
mabiao0525
2024-03-17 18:58:15 +08:00
committed by GitHub
parent 047c5e5f03
commit e9a89648f8
5 changed files with 35 additions and 14 deletions

View File

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