Skip to content

Commit

Permalink
Merge pull request #43 from jaakkor2/dotdot
Browse files Browse the repository at this point in the history
Refer to "[Content_Types].xml" without ".."
  • Loading branch information
matthijscox-asml authored Aug 17, 2023
2 parents 5f2e746 + 616e856 commit 1a63efb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PPTX"
uuid = "14a86994-10a4-4a7d-b9ad-ef6f3b1fac6a"
authors = ["Xander de Vries", "Matthijs Cox"]
version = "0.6.4"
version = "0.6.5"

[deps]
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
Expand Down
6 changes: 3 additions & 3 deletions src/write.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ function update_table_style!(unzipped_ppt_dir::String=".")
end
end

function add_contenttypes!()
path = joinpath("..", "[Content_Types].xml")
function add_contenttypes!(tmpdir, unzipped_dir)
path = joinpath(tmpdir, unzipped_dir, "[Content_Types].xml")
doc = readxml(path)
r = root(doc)
extension_contenttypes = (
Expand Down Expand Up @@ -183,7 +183,7 @@ function Base.write(
write_slides!(p)
write_shapes!(p)
update_table_style!()
add_contenttypes!()
add_contenttypes!(tmpdir, unzipped_dir)
end
zip(unzipped_dir, filename)
cp(filename, filepath)
Expand Down

2 comments on commit 1a63efb

@matthijscox-asml
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register

Release notes:

Attempt to bugfix the SystemError: opening file "../[Content_Types].xml"

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/89831

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.6.5 -m "<description of version>" 1a63efb6ddd5de9439fdc50ec8d40fd5722d67d0
git push origin v0.6.5

Please sign in to comment.