mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Don't use os.path for HTML pathnames.
This commit is contained in:
parent
7dd56497af
commit
61b697514c
2
CHANGES
2
CHANGES
@ -16,6 +16,8 @@ Changes in trunk
|
||||
* sphinx.config: The config file itself can be an extension (if it
|
||||
provides a setup() function).
|
||||
|
||||
* sphinx.htmlwriter: Don't use os.path for joining image HREFs.
|
||||
|
||||
|
||||
Release 0.1.61950 (Mar 26, 2008)
|
||||
================================
|
||||
|
@ -10,7 +10,7 @@
|
||||
"""
|
||||
|
||||
import sys
|
||||
from os import path
|
||||
import posixpath
|
||||
|
||||
from docutils import nodes
|
||||
from docutils.writers.html4css1 import Writer, HTMLTranslator as BaseTranslator
|
||||
@ -252,8 +252,8 @@ class HTMLTranslator(BaseTranslator):
|
||||
olduri = node['uri']
|
||||
# rewrite the URI if the environment knows about it
|
||||
if olduri in self.builder.env.images:
|
||||
node['uri'] = path.join(self.builder.imgpath,
|
||||
self.builder.env.images[olduri][1])
|
||||
node['uri'] = posixpath.join(self.builder.imgpath,
|
||||
self.builder.env.images[olduri][1])
|
||||
BaseTranslator.visit_image(self, node)
|
||||
|
||||
def visit_toctree(self, node):
|
||||
|
Loading…
Reference in New Issue
Block a user