diff --git a/common/contenttypes.go b/common/contenttypes.go index 15ae5570..20ffc388 100644 --- a/common/contenttypes.go +++ b/common/contenttypes.go @@ -68,9 +68,6 @@ func (c ContentTypes) EnsureOverride(path, contentType string) { for _, ovr := range c.x.Override { // found one, so just ensure the content type matches and bail if ovr.PartNameAttr == path { - if !strings.HasPrefix(path, "/") { - path = "/" + path - } if strings.HasPrefix(contentType, "http") { gooxml.Log("content type '%s' is incorrect, must not start with http", contentType) } diff --git a/common/coreproperties.go b/common/coreproperties.go index aa492988..ba229bee 100644 --- a/common/coreproperties.go +++ b/common/coreproperties.go @@ -30,7 +30,7 @@ func (c CoreProperties) X() *core_properties.CoreProperties { return c.x } -// ContentStatus returns the category of the document +// Category returns the category of the document func (c CoreProperties) Category() string { if c.x.Category != nil { return *c.x.Category @@ -51,7 +51,7 @@ func (c CoreProperties) ContentStatus() string { return "" } -// SetCategory records the category of the document. +// SetContentStatus records the content status of the document. func (c CoreProperties) SetContentStatus(s string) { c.x.ContentStatus = &s } diff --git a/common/image.go b/common/image.go index c4fa52ea..a9b7035a 100644 --- a/common/image.go +++ b/common/image.go @@ -64,7 +64,7 @@ func (i ImageRef) Path() string { return i.img.Path } -// Path returns the path to an image file +// Size returns the size of an image func (i ImageRef) Size() image.Point { return i.img.Size }