mirror of https://github.com/django/django.git
Made fix for quote characters with SmartPants + parsed literal blocks conditional on Sphinx version.
This hs been fixed upstream in releases >= 1.0.8 (issue 647.) git-svn-id: http://code.djangoproject.com/svn/django/trunk@16952 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
6d7461ffdd
commit
b95c06d423
|
@ -16,7 +16,7 @@ except ImportError:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
json = None
|
json = None
|
||||||
|
|
||||||
from sphinx import addnodes, roles
|
from sphinx import addnodes, roles, __version__ as sphinx_ver
|
||||||
from sphinx.builders.html import StandaloneHTMLBuilder
|
from sphinx.builders.html import StandaloneHTMLBuilder
|
||||||
from sphinx.writers.html import SmartyPantsHTMLTranslator
|
from sphinx.writers.html import SmartyPantsHTMLTranslator
|
||||||
from sphinx.util.console import bold
|
from sphinx.util.console import bold
|
||||||
|
@ -139,6 +139,7 @@ class DjangoHTMLTranslator(SmartyPantsHTMLTranslator):
|
||||||
def depart_desc_parameterlist(self, node):
|
def depart_desc_parameterlist(self, node):
|
||||||
self.body.append(')')
|
self.body.append(')')
|
||||||
|
|
||||||
|
if sphinx_ver < '1.0.8':
|
||||||
#
|
#
|
||||||
# Don't apply smartypants to literal blocks
|
# Don't apply smartypants to literal blocks
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue