We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eb86d61 + cf60dd2 commit 7a523e7Copy full SHA for 7a523e7
dml/dmlct/cNvPr.go
@@ -2,7 +2,6 @@ package dmlct
2
3
import (
4
"encoding/xml"
5
- "fmt"
6
"strconv"
7
)
8
@@ -32,9 +31,11 @@ func NewNonVisProp(id uint, name string) *CNvPr {
32
31
}
33
34
func (c CNvPr) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
35
- if c.Name == "" {
36
- return fmt.Errorf("invalid Name for Non-Visual Drawing Properties when marshaling")
37
- }
+ // ! NOTE: Disabling the empty name check for the Picture
+ // since popular docx tools allow them
+ // if c.Name == "" {
+ // return fmt.Errorf("invalid Name for Non-Visual Drawing Properties when marshaling")
38
+ // }
39
40
start.Attr = []xml.Attr{
41
{Name: xml.Name{Local: "id"}, Value: strconv.FormatUint(uint64(c.ID), 10)},
0 commit comments