1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-04 23:30:25 +08:00

optimize(pgSz): use explicit type int instaed of xml.Attr

This commit is contained in:
源文雨
2024-08-23 11:43:52 +08:00
parent 51eca30836
commit 3e5e3f4b1e

View File

@@ -64,7 +64,7 @@ func TestUnmarshalPlainStructure(t *testing.T) {
}
}
case *SectPr:
if v.PgSz.W.Value != "11906" || v.PgSz.H.Value != "16838" {
if v.PgSz.W != 11906 || v.PgSz.H != 16838 {
t.Fatalf("We were not able to parse sectPr")
}
}