1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-11 19:10:24 +08:00

Keep unmarshalling

This commit is contained in:
Gonzalo Fernandez-Victorio
2021-05-11 16:17:06 +01:00
parent af18d96b6b
commit 965e28ba05
4 changed files with 89 additions and 9 deletions

View File

@@ -31,6 +31,7 @@ func (p *Paragraph) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
if tt.Name.Local == "hyperlink" {
var value Hyperlink
d.DecodeElement(&value, &start)
value.ID = getAtt(tt.Attr, "id")
elem = ParagraphChild{Link: &value}
} else if tt.Name.Local == "r" {
var value Run