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:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user