1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-05 07:40:24 +08:00

fix: two w:w in pgSz (#35)

This commit is contained in:
源文雨
2024-08-23 11:38:19 +08:00
parent 8f66e2b866
commit 38ee4fb790

View File

@@ -74,7 +74,7 @@ func (pgsz *PgSz) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
case "w":
pgsz.W = xml.Attr{Name: xml.Name{Local: "w:w"}, Value: attr.Value}
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:
// ignore other attributes now
}