Skip to content

Commit

Permalink
Merge pull request #3 from AquaBindi/bugfix
Browse files Browse the repository at this point in the history
Fix directory separator for Windows
  • Loading branch information
tk0miya committed Dec 8, 2019
2 parents 69261a3 + 472b5db commit d1e2e6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sphinxcontrib/blockdiag.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ def html_render_png(self, node):

# link to original image
relpath = node.get_relpath('PNG', self.builder)
relpath = relpath.replace(os.path.sep, '/')
if 'width' in node['options'] or 'height' in node['options'] or 'scale' in node['options']:
self.body.append('<a class="reference internal image-reference" href="%s">' % relpath)
self.context.append('</a>')
Expand Down

0 comments on commit d1e2e6b

Please sign in to comment.