Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.5.x] Fixed #21869 -- Fixed docs building with Sphinx 1.2.1.

Thanks tragiclifestories for the report.

Backport of e1d18b9 from master
  • Loading branch information...
commit 60054e6e31abbe8ec17631f1afff77c947a05fad 1 parent c539a44
@timgraham timgraham authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 docs/_ext/djangodocs.py
View
6 docs/_ext/djangodocs.py
@@ -99,11 +99,13 @@ def depart_table(self, node):
self.compact_p = self.context.pop()
self.body.append('</table>\n')
- # <big>? Really?
def visit_desc_parameterlist(self, node):
- self.body.append('(')
+ self.body.append('(') # by default sphinx puts <big> around the "("
self.first_param = 1
+ self.optional_param_level = 0
self.param_separator = node.child_text_separator
+ self.required_params_left = sum([isinstance(c, addnodes.desc_parameter)
+ for c in node.children])
def depart_desc_parameterlist(self, node):
self.body.append(')')

0 comments on commit 60054e6

Please sign in to comment.
Something went wrong with that request. Please try again.