Skip to content

Commit

Permalink
normalize relationship owner part name when read
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Feb 17, 2020
1 parent 7160c44 commit 6b00854
Show file tree
Hide file tree
Showing 2 changed files with 663 additions and 656 deletions.
1 change: 1 addition & 0 deletions reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ func loadRelationships(file archiveFile, rels *relationshipsPart) error {
// get part name from rels part
path := strings.Replace(filepath.Dir(filepath.Dir(file.Name())), `\`, "/", -1)
pname := "/" + path + "/" + strings.TrimSuffix(filepath.Base(file.Name()), filepath.Ext(file.Name()))
pname = NormalizePartName(pname)
rels.addRelationship(pname, rls)
return nil
}
Expand Down
Loading

0 comments on commit 6b00854

Please sign in to comment.