mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-08 17:20:26 +08:00
add: anchor drawing & some attrs
This commit is contained in:
@@ -60,7 +60,7 @@ func (doc *Document) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
|
||||
case "body":
|
||||
case "p":
|
||||
var value Paragraph
|
||||
d.DecodeElement(&value, &start)
|
||||
d.DecodeElement(&value, &tt)
|
||||
if len(value.Children) > 0 {
|
||||
value.file = doc.file
|
||||
doc.Body.Paragraphs = append(doc.Body.Paragraphs, &value)
|
||||
|
||||
Reference in New Issue
Block a user