1
0
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:
源文雨
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": 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
} }