Skip to content

Commit

Permalink
Fix the other writer too
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-wieser committed Mar 16, 2022
1 parent c06b442 commit ea55e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/writers/html.py
Expand Up @@ -612,7 +612,7 @@ def visit_image(self, node: Element) -> None:
# rewrite the URI if the environment knows about it
if olduri in self.builder.images:
node['uri'] = posixpath.join(self.builder.imgpath,
self.builder.images[olduri])
urllib.parse.quote(self.builder.images[olduri]))

if 'scale' in node:
# Try to figure out image height and width. Docutils does that too,
Expand Down

0 comments on commit ea55e03

Please sign in to comment.