Skip to content

Commit

Permalink
Fixed #21869 -- Fixed docs building with Sphinx 1.2.1.
Browse files Browse the repository at this point in the history
Thanks tragiclifestories for the report.
  • Loading branch information
timgraham committed Jan 24, 2014
1 parent 4d82094 commit e1d18b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/_ext/djangodocs.py
Expand Up @@ -236,11 +236,13 @@ def depart_table(self, node):
self.compact_p = self.context.pop() self.compact_p = self.context.pop()
self.body.append('</table>\n') self.body.append('</table>\n')


# <big>? Really?
def visit_desc_parameterlist(self, node): def visit_desc_parameterlist(self, node):
self.body.append('(') self.body.append('(') # by default sphinx puts <big> around the "("
self.first_param = 1 self.first_param = 1
self.optional_param_level = 0
self.param_separator = node.child_text_separator 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): def depart_desc_parameterlist(self, node):
self.body.append(')') self.body.append(')')
Expand Down

0 comments on commit e1d18b9

Please sign in to comment.