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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user