Skip to content

Commit

Permalink
Fixes the issue but feels kind of naive
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-cooper committed Jan 7, 2023
1 parent a13cf2c commit 8d15b99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sphinx/transforms/post_transforms/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ def handle(self, node: nodes.image) -> None:
else:
srcpath = node['candidates']['*']

filename = get_filename_for(srcpath, _to)
filename = self.env.images[srcpath][1]
filename = get_filename_for(filename, _to)
ensuredir(self.imagedir)
destpath = os.path.join(self.imagedir, filename)

Expand Down

0 comments on commit 8d15b99

Please sign in to comment.