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

hide rsid

This commit is contained in:
源文雨
2023-03-09 23:30:22 +08:00
parent 65da4dc8f8
commit cf061a29e4
3 changed files with 16 additions and 16 deletions

View File

@@ -33,8 +33,8 @@ import (
type Run struct {
XMLName xml.Name `xml:"w:r,omitempty"`
Space string `xml:"xml:space,attr,omitempty"`
RsidR string `xml:"w:rsidR,attr,omitempty"`
RsidRPr string `xml:"w:rsidRPr,attr,omitempty"`
// RsidR string `xml:"w:rsidR,attr,omitempty"`
// RsidRPr string `xml:"w:rsidRPr,attr,omitempty"`
RunProperties *RunProperties `xml:"w:rPr,omitempty"`
@@ -51,10 +51,10 @@ func (r *Run) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
switch attr.Name.Local {
case "space":
r.Space = attr.Value
case "rsidR":
/*case "rsidR":
r.RsidR = attr.Value
case "rsidRPr":
r.RsidRPr = attr.Value
r.RsidRPr = attr.Value*/
default:
// ignore other attributes
}