mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-17 15:30:27 +08:00
fix: two w:w in pgSz (#35)
This commit is contained in:
@@ -74,7 +74,7 @@ func (pgsz *PgSz) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
|||||||
case "w":
|
case "w":
|
||||||
pgsz.W = xml.Attr{Name: xml.Name{Local: "w:w"}, Value: attr.Value}
|
pgsz.W = xml.Attr{Name: xml.Name{Local: "w:w"}, Value: attr.Value}
|
||||||
case "h":
|
case "h":
|
||||||
pgsz.H = xml.Attr{Name: xml.Name{Local: "w:w"}, Value: attr.Value}
|
pgsz.H = xml.Attr{Name: xml.Name{Local: "w:h"}, Value: attr.Value}
|
||||||
default:
|
default:
|
||||||
// ignore other attributes now
|
// ignore other attributes now
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user