From bce9c3b8dc0027fe3af5dccd9a4f253f8342050f 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: Sun, 5 Mar 2023 23:31:26 +0800 Subject: [PATCH] run add wpg --- structrun.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structrun.go b/structrun.go index 095f835..38e82cc 100644 --- a/structrun.go +++ b/structrun.go @@ -124,7 +124,7 @@ func (r *Run) parse(d *xml.Decoder, tt xml.StartElement) (child interface{}, err if ttt, ok := tok.(xml.StartElement); ok && ttt.Name.Local == "Choice" { for _, attr := range ttt.Attr { if attr.Name.Local == "Requires" { - if attr.Value == "wps" || attr.Value == "wpc" { + if attr.Value == "wps" || attr.Value == "wpc" || attr.Value == "wpg" { tok, err = d.Token() // go into choice if err != nil { return nil, err