From 38ee4fb79080da3c1b47b4b0fb00054f10e60089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Fri, 23 Aug 2024 11:38:19 +0800 Subject: [PATCH] fix: two `w:w` in pgSz (#35) --- structsect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structsect.go b/structsect.go index de8917c..fda9d32 100644 --- a/structsect.go +++ b/structsect.go @@ -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 }