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