summaryrefslogtreecommitdiff
path: root/lib.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2020-07-19 00:10:42 +0800
committerxuri <xuri.me@gmail.com>2020-07-19 00:10:42 +0800
commitca43c6511538f50581ec3bbe1e4ee275444f8049 (patch)
tree942920612683cb0838057c686aa2a6adf432c915 /lib.go
parentc922c32fb7571d3d40d3244e5635142bc390a3db (diff)
Update test for addTable
Diffstat (limited to 'lib.go')
-rw-r--r--lib.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib.go b/lib.go
index 6dcd97e..0efb074 100644
--- a/lib.go
+++ b/lib.go
@@ -396,10 +396,7 @@ func (f *File) addNameSpaces(path string, ns xml.Attr) {
if !exist {
f.xmlAttr[path] = append(f.xmlAttr[path], ns)
if !mc {
- f.xmlAttr[path] = append(f.xmlAttr[path], xml.Attr{
- Name: xml.Name{Local: "mc", Space: "xmlns"},
- Value: SourceRelationshipCompatibility,
- })
+ f.xmlAttr[path] = append(f.xmlAttr[path], SourceRelationshipCompatibility)
}
if !ignore {
f.xmlAttr[path] = append(f.xmlAttr[path], xml.Attr{