1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-10 02:00:24 +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

@@ -88,9 +88,10 @@ func (t *Tab) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
return err
}
// BarterRabbet is <br>
// BarterRabbet is <br> , if with type=page , add pagebreaks
type BarterRabbet struct {
XMLName xml.Name `xml:"w:br,omitempty"`
Type string `xml:"w:type,attr,omitempty"`
}
// Text object contains the actual text