Skip to content

Commit

Permalink
Fix directory separator for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
AquaBindi committed May 21, 2015
1 parent f6aadfb commit 472b5db
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 @@ -171,6 +171,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 472b5db

Please sign in to comment.