mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Consider duplicate names when using image post transforms (#11113)
Closes: #11110
This commit is contained in:
parent
6809ca7d04
commit
0eeb34caf8
@ -234,7 +234,8 @@ class ImageConverter(BaseImageConverter):
|
||||
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user