diff --git a/structeffects.go b/structeffects.go index 0302330..5aa4741 100644 --- a/structeffects.go +++ b/structeffects.go @@ -111,6 +111,12 @@ type VertAlign struct { Val string `xml:"w:val,attr"` } +// Strike ... +type Strike struct { + XMLName xml.Name `xml:"w:strike,omitempty"` + Val string `xml:"w:val,attr"` +} + // Shade is an element that represents a shading pattern applied to a document element. type Shade struct { XMLName xml.Name `xml:"w:shd,omitempty"` diff --git a/structrun.go b/structrun.go index 8013613..d949371 100644 --- a/structrun.go +++ b/structrun.go @@ -212,6 +212,7 @@ type RunProperties struct { Kern *Kern Underline *Underline VertAlign *VertAlign + Strike *Strike } // UnmarshalXML ... @@ -297,6 +298,10 @@ func (r *RunProperties) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { var value VertAlign value.Val = getAtt(tt.Attr, "val") r.VertAlign = &value + case "strike": + var value Strike + value.Val = getAtt(tt.Attr, "val") + r.Strike = &value default: err = d.Skip() // skip unsupported tags if err != nil {