mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-12 19:58:36 +08:00
run add wpg
This commit is contained in:
@@ -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" {
|
if ttt, ok := tok.(xml.StartElement); ok && ttt.Name.Local == "Choice" {
|
||||||
for _, attr := range ttt.Attr {
|
for _, attr := range ttt.Attr {
|
||||||
if attr.Name.Local == "Requires" {
|
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
|
tok, err = d.Token() // go into choice
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
Reference in New Issue
Block a user