mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-06 16:20:24 +08:00
🎨 改进代码样式
This commit is contained in:
@@ -34,10 +34,8 @@ func (p *ParagraphProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElemen
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
return nil
|
||||
|
||||
}
|
||||
|
||||
// Paragraph <w:p>
|
||||
@@ -177,9 +175,7 @@ func (p *Paragraph) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
}
|
||||
children = append(children, elem)
|
||||
}
|
||||
|
||||
}
|
||||
p.Children = children
|
||||
return nil
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user